]> git.mjollnir.org Git - moodle.git/commitdiff
Typo in capability names.\r\rYou do not want to know how long I had to stare at the...
authortjhunt <tjhunt>
Tue, 19 Sep 2006 22:31:13 +0000 (22:31 +0000)
committertjhunt <tjhunt>
Tue, 19 Sep 2006 22:31:13 +0000 (22:31 +0000)
question/showbank.php

index af11deb7148fd7c2a9b704ecb346c5757fdfee9e..6c61ad6a13c5a722a0b34cc5b63f9fda98f78d0c 100644 (file)
@@ -163,7 +163,7 @@ if (empty($SESSION->questioncat) or !count_records_select("question_categories",
     }
 
     // starts with category selection form
-    if (has_capability('moodle:question/managecategories', $context)) {
+    if (has_capability('moodle/question:managecategories', $context)) {
         print_simple_box_start("center", "100%");
         question_category_form($course, $SESSION->questioncat, $SESSION->questionrecurse, $SESSION->questionshowhidden);
         print_simple_box_end();
@@ -171,7 +171,7 @@ if (empty($SESSION->questioncat) or !count_records_select("question_categories",
         print_spacer(5,1);
     }
     
-    if (has_capability('moodle:question/manage', $context)) {
+    if (has_capability('moodle/question:manage', $context)) {
         // continues with list of questions
         print_simple_box_start("center", "100%");
         question_list($course, $SESSION->questioncat, isset($modform->instance) ? $modform->instance : 0, $SESSION->questionrecurse, $page, $perpage, $SESSION->questionshowhidden, $sortorder);