]> git.mjollnir.org Git - moodle.git/commitdiff
And another typo in capability name.
authortjhunt <tjhunt>
Tue, 19 Sep 2006 22:58:12 +0000 (22:58 +0000)
committertjhunt <tjhunt>
Tue, 19 Sep 2006 22:58:12 +0000 (22:58 +0000)
question/editlib.php

index 2d56bbab0fea449560e4ccb582b1a7dfb9206316..d33ac891ac3b3c5f6667df5a5866b658191f408c 100644 (file)
@@ -263,7 +263,7 @@ function question_list($course, $categoryid, $quizid=0,
     echo '<table><tr>';
 
     // check if editing of this category is allowed
-    if (has_capability('moodle/question:managecateory', $context)) {
+    if (has_capability('moodle/question:managecategory', $context)) {
         echo "<td valign=\"top\"><b>$strcreatenewquestion:</b></td>";
         echo '<td valign="top" align="right">';
         popup_form ("$CFG->wwwroot/question/question.php?category=$category->id&amp;qtype=", $qtypemenu, "addquestion",