MDL-43028 navigation: correct capability check

This commit is contained in:
Marina Glancy 2013-11-25 16:11:51 +11:00 committed by Rajesh Taneja
parent 13d5afea34
commit 3b62f94787
3 changed files with 8 additions and 1 deletions

View file

@ -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.