mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-11004 missing capability check in main manu block on the frontpage
This commit is contained in:
parent
97928ddf00
commit
b286b86097
@ -29,7 +29,7 @@ class block_site_main_menu extends block_list {
|
||||
$course = get_record('course', 'id', $this->instance->pageid);
|
||||
$context = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
|
||||
$isediting = isediting($this->instance->pageid);
|
||||
$isediting = isediting($this->instance->pageid) && has_capability('moodle/course:manageactivities', $context);
|
||||
$ismoving = ismoving($this->instance->pageid);
|
||||
|
||||
$sections = get_all_sections($this->instance->pageid);
|
||||
|
Loading…
x
Reference in New Issue
Block a user