I think it doesn't anyway, but I am not sure which is why I am posting here.
To investigate MDL-6739 I had to log out and log in, I could not do it all logged in as admin, and using the switch role interface.
Also, you can't backup role definitions, or at least if one can, I can't see how.
There are notices if you try to restore the attached file. (Map the two custom roles to teacher.)
Also, it would be really really helpful if you could create roles starting by copying an existing role like teacher, then changing a few options, rather than having to tick a lot of boxes yourself.
Hmm, there could be some regression for the case of an admin (it used to work!)
Gee I wish there was a bug filed for it in the tracker.
Gee I wish there was a bug filed for it in the tracker.
I wonder whether roles could not be handled as plugins of the sort like quiz question types. That would allow to backup easier, swap roles between sites, and duplicate for minor modifications.
Not only is there a problem with backing up role assignments, I think there is a general problem with role assignments not updating in the db. E.g., if I assign a role as teacher of a course, then "unassign" that role, then later when logging in I get error messages and have to manually delete the old role assignment from the db.
Hi Tim,
Roles definitions are always backed up in the backup file (moodle.xml). I also did not get any warnings when restoring the backupfile you provided, maybe you are using an older version?
Yu
Roles definitions are always backed up in the backup file (moodle.xml). I also did not get any warnings when restoring the backupfile you provided, maybe you are using an older version?
Yu
Oh I see, they are in the XML, but I had no way of knowing that till you told me, and they don't seems to be restored.
It would be very useful to be able to just backup the definition of a single role, then restore it to another site.
It would be very useful to be able to just backup the definition of a single role, then restore it to another site.
Hi Tim,
The role definitions are only restored if they are actually used in the course (someone having a role assignement in the course, activities, blocks etc). So in normal situations roles such as admin or course creators are unlikely to be restored.
Just filed MDL-7392 for you. Should be able to get it in for 1.7.1
Cheers,
Yu
The role definitions are only restored if they are actually used in the course (someone having a role assignement in the course, activities, blocks etc). So in normal situations roles such as admin or course creators are unlikely to be restored.
Just filed MDL-7392 for you. Should be able to get it in for 1.7.1
Cheers,
Yu