mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-17479 category search: replaced old update capability; merged from MOODLE__STABLE
This commit is contained in:
parent
fa11779376
commit
64c6d5db62
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user