MDL-44398 tags: Fix incorrect usage of caps

This commit is contained in:
Ankit Agarwal
2014-04-24 16:39:31 +08:00
parent c16911b50f
commit a5657deada
+1 -1
View File
@@ -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);