MDL-8373 Add new predefined role "Authenticated user" for all logged in users

This commit is contained in:
skodak
2007-01-31 21:05:32 +00:00
parent f58938b5a7
commit c785d40ac3
7 changed files with 28 additions and 13 deletions
+3
View File
@@ -1337,6 +1337,8 @@ function moodle_install_roles() {
addslashes(get_string('defaultcoursestudentdescription')), 'moodle/legacy:student');
$guestrole = create_role(addslashes(get_string('guest')), 'guest',
addslashes(get_string('guestdescription')), 'moodle/legacy:guest');
$userrole = create_role(addslashes(get_string('authenticateduser')), 'user',
addslashes(get_string('authenticateduserdescription')), 'moodle/legacy:user');
/// Now is the correct moment to install capabilities - after creation of legacy roles, but before assigning of roles
@@ -1480,6 +1482,7 @@ function moodle_install_roles() {
allow_override($adminrole, $editteacherrole);
allow_override($adminrole, $studentrole);
allow_override($adminrole, $guestrole);
allow_override($adminrole, $userrole);
/// Delete the old user tables when we are done