mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Added a new setting called $CFG->defaultuserroleid which defines
the role that ALL users get by default when they log in.
This commit is contained in:
parent
ea8158c118
commit
8f8ed475f7
12 changed files with 113 additions and 51 deletions
|
@ -35,6 +35,7 @@
|
|||
|
||||
require_capability('moodle/role:assign', $context);
|
||||
|
||||
$assignableroles = get_assignable_roles($context);
|
||||
|
||||
$strassignusers = get_string('assignusers', 'role');
|
||||
$strpotentialusers = get_string('potentialusers', 'role');
|
||||
|
@ -45,8 +46,6 @@
|
|||
$strsearch = get_string('search');
|
||||
$strshowall = get_string('showall');
|
||||
|
||||
$context = get_record('context', 'id', $contextid);
|
||||
$assignableroles = get_assignable_roles($context);
|
||||
|
||||
|
||||
/// Make sure this user can assign that role
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue