From a5657deadafae4a74ee96f48e5629360219753fd Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Thu, 24 Apr 2014 16:38:31 +0800 Subject: [PATCH] MDL-44398 tags: Fix incorrect usage of caps --- tag/edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tag/edit.php b/tag/edit.php index 433d969d7d2..c5b3e6000b7 100644 --- a/tag/edit.php +++ b/tag/edit.php @@ -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);