-
Improvement
-
Resolution: Fixed
-
Critical
-
2.4
-
MOODLE_24_STABLE
-
MOODLE_25_STABLE
-
w51_
MDL-37302_m25_roleedit -
There is a roles_protected() method in enrolment plugins, at present it only says what kind of roles is the plugin using by default.
I am proposing a change similar to groups API, this method would also indicate if role with component+itemid can be removed manually. This would be used in flatfile and could be also used in paypal and self enrolment.
I have also discovered that admins can not unsassign all roles, I am going to fix it at the same time because it is the same code.