From 808b3dbeb3569b440e4abd4bb626445b6785ab46 Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Wed, 18 Jul 2007 09:14:28 +0000 Subject: [PATCH] MDL-10496: Correct role capability requirements had not been included, so menu was not displayed for roles with only category update and/or bacup selected (assigned at site level) Merged from STABLE_18 --- admin/settings/courses.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/settings/courses.php b/admin/settings/courses.php index c08e9eb17..61614b3c6 100644 --- a/admin/settings/courses.php +++ b/admin/settings/courses.php @@ -3,7 +3,7 @@ // This file defines settingpages and externalpages under the "courses" category -$ADMIN->add('courses', new admin_externalpage('coursemgmt', get_string('coursemgmt', 'admin'), $CFG->wwwroot . '/course/index.php?categoryedit=on')); +$ADMIN->add('courses', new admin_externalpage('coursemgmt', get_string('coursemgmt', 'admin'), $CFG->wwwroot . '/course/index.php?categoryedit=on','moodle/category:update')); $ADMIN->add('courses', new admin_externalpage('enrolment', get_string('enrolments'), $CFG->wwwroot . '/'.$CFG->admin.'/enrol.php')); @@ -17,7 +17,7 @@ $ADMIN->add('courses', $temp); // "backups" settingpage -$temp = new admin_settingpage('backups', get_string('backups','admin')); +$temp = new admin_settingpage('backups', get_string('backups','admin'),'moodle/site:backup'); $temp->add(new admin_setting_backupcheckbox('backup_sche_modules', get_string('includemodules'), get_string('backupincludemoduleshelp'), 0)); $temp->add(new admin_setting_backupcheckbox('backup_sche_withuserdata', get_string('includemoduleuserdata'), get_string('backupincludemoduleuserdatahelp'), 0)); $temp->add(new admin_setting_backupcheckbox('backup_sche_metacourse', get_string('metacourse'), get_string('backupmetacoursehelp'), 0)); -- 2.11.4.GIT