mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-43028 navigation: correct capability check
This commit is contained in:
parent
13d5afea34
commit
3b62f94787
3 changed files with 8 additions and 1 deletions
|
@ -45,6 +45,7 @@ require_login();
|
|||
|
||||
$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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue