diff --git a/admin/settings/appearance.php b/admin/settings/appearance.php index 4b2df3a9e20f6..6505c96c2fbfe 100644 --- a/admin/settings/appearance.php +++ b/admin/settings/appearance.php @@ -2,7 +2,12 @@ // This file defines settingpages and externalpages under the "appearance" category -if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page +$capabilities = array( + 'moodle/my:configsyspages', + 'moodle/tag:manage' +); + +if ($hassiteconfig or has_any_capability($capabilities, $systemcontext)) { // speedup for non-admins, add all caps used on this page $ADMIN->add('appearance', new admin_category('themes', new lang_string('themes'))); // "themesettings" settingpage diff --git a/my/indexsys.php b/my/indexsys.php index bbc8640297fba..6c49d29bab2b3 100644 --- a/my/indexsys.php +++ b/my/indexsys.php @@ -45,6 +45,7 @@ $header = "$SITE->shortname: ".get_string('myhome')." (".get_string('mypage', 'admin').")"; +$PAGE->set_blocks_editing_capability('moodle/my:configsyspages'); admin_externalpage_setup('mypage', '', null, '', array('pagelayout' => 'mydashboard')); // Override pagetype to show blocks properly. diff --git a/user/profilesys.php b/user/profilesys.php index 493d600432348..d07c6f598547b 100644 --- a/user/profilesys.php +++ b/user/profilesys.php @@ -39,6 +39,7 @@ $header = "$SITE->shortname: ".get_string('publicprofile')." (".get_string('myprofile', 'admin').")"; +$PAGE->set_blocks_editing_capability('moodle/my:configsyspages'); admin_externalpage_setup('mypage', '', null, '', array('pagelayout' => 'mydashboard')); // Override pagetype to show blocks properly.