-
Bug
-
Resolution: Fixed
-
Major
-
2.3.6, 2.4
-
MOODLE_23_STABLE, MOODLE_24_STABLE
-
MOODLE_23_STABLE, MOODLE_24_STABLE
-
git@github.com:StudiUM/moodle.git
-
MDL-39084-master -
It seems there's a problem with capabilitiy checks between "Course grade settings" in the navigation (navigation bar and dropdown menu) and in the page.
Navigation (grade/lib.php) :
public static function get_info_manage_settings($courseid) {
|
...
|
if (has_capability('moodle/course:update', $context)) {
|
...
|
Page (grade/edit/settings/index.php) :
...
|
require_capability('moodle/grade:manage', $context);
|
...
|
Although I'm not sure which cabability is the right one, it should be set the same in both places.
If the capability should be "moodle/course:update" then this bug should be classified as a "minor security issue".