]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-17479 category search: replaced old update capability; merged from MOODLE__STABLE
authorskodak <skodak>
Tue, 9 Dec 2008 20:30:02 +0000 (20:30 +0000)
committerskodak <skodak>
Tue, 9 Dec 2008 20:30:02 +0000 (20:30 +0000)
lib/weblib.php

index 3569958cca44f4888f4e9ae0c4774d961193230d..09786b657b9d0fb226c32461e0f3f9f4c68a404c 100644 (file)
@@ -5299,7 +5299,7 @@ function update_categories_search_button($search,$page,$perpage) {
     global $CFG, $USER;
 
     // not sure if this capability is the best  here
-    if (has_capability('moodle/category:update', get_context_instance(CONTEXT_SYSTEM))) {
+    if (has_capability('moodle/category:manage', get_context_instance(CONTEXT_SYSTEM))) {
         if (!empty($USER->categoryediting)) {
             $string = get_string("turneditingoff");
             $edit = "off";