From: skodak Date: Tue, 9 Dec 2008 20:30:02 +0000 (+0000) Subject: MDL-17479 category search: replaced old update capability; merged from MOODLE__STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=64c6d5db623da13fd57afdd2a4334ec657d7cf8c;p=moodle.git MDL-17479 category search: replaced old update capability; merged from MOODLE__STABLE --- diff --git a/lib/weblib.php b/lib/weblib.php index 3569958cca..09786b657b 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -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";