Skip to content
Browse files

Merge branch 'MOODLE_24_MDL35144' of git://github.com/thepurpleblob/g…

…umoodle into MOODLE_24_STABLE
  • Loading branch information...
2 parents eda9f7b + de6e487 commit 5bad12404571ccc1f8e21109ba97bd52769a055a @danpoltawski danpoltawski committed Apr 10, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 course/index.php
View
6 course/index.php
@@ -44,6 +44,12 @@
$PAGE->set_context($systemcontext);
$PAGE->set_pagelayout('admin');
+// This needs to match caps checked in can_edit_in_category below.
+$PAGE->set_other_editing_capability(array(
+ 'moodle/category:manage',
+ 'moodle/course:create'
+));
+
if (can_edit_in_category()) {
if ($categoryedit !== -1) {
$USER->editing = $categoryedit;

0 comments on commit 5bad124

Please sign in to comment.
Something went wrong with that request. Please try again.