MDL-44398 tags: Fix incorrect usage of caps

This commit is contained in:
Ankit Agarwal 2014-04-24 16:38:31 +08:00
parent e471fc6c9d
commit 867c44c348

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);