mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-44398 tags: Fix incorrect usage of caps
This commit is contained in:
parent
e471fc6c9d
commit
867c44c348
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user