Roles and permissions

 
 
Picture of Sandy Warner
How do I reset all Roles back to Default?
 

I have a mess with permissions.  Does anyone know how to set all the roles back to default, the way Moodle intended?

If I click Override Permissions under each user (except Admin), but not click anything in the long list of roles, will that set each user role back to default?

Or is there a php file name I can just pull over to erase all my past edits on permissions?

I really appeciate anyone's input, thankyou.

sandy

 
Average of ratings: -
Picture of Ann Adamcik
Re: How do I reset all Roles back to Default?
Group Developers
Sandy,

Go to Site Administration -> Users -> Permissions -> Define Roles. Select a role name and then press the Reset to defaults button.

Hope that helps!
-Ann
 
Average of ratings:Useful (2)
Picture of Sandy Warner
Re: How do I reset all Roles back to Default?
 

AHHHHHHHHHHHHHHHHHH thank you so VERY much Ann!  approve

Relief.

 
Average of ratings: -
Picture of Frank B
Re: How do I reset all Roles back to Default?
 

anyone know what would be the SQL equivalent to this?

 
Average of ratings: -
Tim at Lone Pine Koala Sanctuary
Re: How do I reset all Roles back to Default?
Group DevelopersGroup Documentation writersGroup Particularly helpful Moodlers

There is no way to do this in pure SQL. The state you are trying to re-set back to in only stored in PHP file.

 
Average of ratings: -
Picture of toni hernandez
Re: How do I reset all Roles back to Default?
 

Thanks Tim.

I am having some issues reseting roles too.
Any chance to know what that file is stored?

 
Average of ratings: -
Tim at Lone Pine Koala Sanctuary
Re: How do I reset all Roles back to Default?
Group DevelopersGroup Documentation writersGroup Particularly helpful Moodlers

Capability definitions are stored in the access.php file of each plugin.

Those files are loaded an used in functions like get_default_capabilities, load_capability_def, update_capabilities in lib/accesslib.php. If you really want to understand how all this works, read that code.

 
Average of ratings: -