MDL-71610 theme_boost: remove edit button from Boost

This commit is contained in:
Bas Brands 2021-07-06 10:19:09 +02:00
parent 09f6ce9fed
commit a0bb51622c
12 changed files with 22 additions and 9 deletions

View file

@ -5434,7 +5434,7 @@ class settings_navigation extends navigation_node {
}
$frontpage->id = 'frontpagesettings';
if ($this->page->user_allowed_editing()) {
if ($this->page->user_allowed_editing() && !$this->page->theme->haseditswitch) {
// Add the turn on/off settings
$url = new moodle_url('/course/view.php', array('id'=>$course->id, 'sesskey'=>sesskey()));