-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.5.3, 5.0
To reproduce:
- Create an "author" role based on student role on course context
- Set moodle/course:manageactivities to "Permit"
- Set mod/subsection:addinstance to "Permit"
- Verify that the "author" role does NOT have the capability moodle/course:update
- Enrol a user "authoruser" into a course, assign the "author" role to him
- As admin enable the mod_subsection plugin
- As "authoruser" go to the course, enable edit mode and try to add a subsection
- It will fail due to missing capability moodle/course:update
This exception is being thrown in course/format/classes/stateactions.php in method create_module. For creating a module however, for my understanding, not the capability moodle/course:update but the capability moodle/course:manageactivities should be required.