MDL-44398 tags: Fix incorrect usage of caps
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@ if ($tagnew = $tagform->get_data()) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!has_capability('moodle/tag:manage', $systemcontext) && !has_capability('moodle/tag:edit', $systemcontext)) {
|
||||
if (!has_capability('moodle/tag:manage', $systemcontext)) {
|
||||
unset($tagnew->name);
|
||||
unset($tagnew->rawname);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user