From 3fccd7fa8d311a355f97b5f9ae7d9f3168012970 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 19 Sep 2006 22:31:13 +0000 Subject: [PATCH] Typo in capability names. You do not want to know how long I had to stare at the code to spot that! --- question/showbank.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/question/showbank.php b/question/showbank.php index af11deb714..6c61ad6a13 100644 --- a/question/showbank.php +++ b/question/showbank.php @@ -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); -- 2.39.5