]> git.mjollnir.org Git - moodle.git/commit
$CFG->defaultcourseroleid defines a site default for the role given to
authormoodler <moodler>
Sun, 17 Sep 2006 09:22:33 +0000 (09:22 +0000)
committermoodler <moodler>
Sun, 17 Sep 2006 09:22:33 +0000 (09:22 +0000)
commit88af238ccbbf7b36c1439a0b69fc3556ce9107c6
tree56105c2e6c7046575efa5d36bbdd9b4f2e6c4ad8
parentb29ab53d31ebc490b1b0665d1ab82b313229f709
$CFG->defaultcourseroleid defines a site default for the role given to
people who enrol in the course.

$course->defaultrole defines the value for each course for what role
should be used in the same case.   Naturally it defaults to the site config
(when it is zero).

This role is retained even when the person editing the course settings
doesn't actually have that role in their list of assignable rights (however
they are prevented from actually switching to any such role themselves).

Note that enrol plugins are free to ignore these values and use whatever
roles they like.  Generally, though, they should respect these settings.
admin/settings/users.php
course/edit.html
course/edit.php
version.php