From 45035434885add2930acedb86d0a76193372f624 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 e0c80f807d0..40421ae8333 100644 --- a/tag/edit.php +++ b/tag/edit.php @@ -101,7 +101,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);