mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-50956' of git://github.com/bostelm/moodle
This commit is contained in:
commit
b84129b11e
@ -47,7 +47,7 @@ class block_site_main_menu extends block_list {
|
||||
return $this->content;
|
||||
}
|
||||
|
||||
$course = $this->page->course;
|
||||
$course = get_site();
|
||||
require_once($CFG->dirroot.'/course/lib.php');
|
||||
$context = context_course::instance($course->id);
|
||||
$isediting = $this->page->user_is_editing() && has_capability('moodle/course:manageactivities', $context);
|
||||
|
Loading…
x
Reference in New Issue
Block a user