-
Bug
-
Resolution: Deferred
-
Critical
-
None
-
2.0, 2.1.10, 2.2.10, 2.3.7, 2.4.4, 2.5
-
None
-
MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
This was checked in as MDL-15449.
This is BAD. The code should look for the role in the database according to some condition, for example shortname = 'student' or having capability legacy/student, with appropriate error handling.