From 1a344ea46f4bdedf6b8c87ae9a419e0617e1ac27 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Wed, 11 Feb 2015 14:14:43 +0800 Subject: [PATCH] MDL-49084 core_tag: add capability check to flag as inappropriate action --- tag/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tag/user.php b/tag/user.php index 983fdb95a20..8b8d7abd932 100644 --- a/tag/user.php +++ b/tag/user.php @@ -45,7 +45,7 @@ switch ($action) { break; case 'flaginappropriate': - + require_capability('moodle/tag:flag', context_system::instance()); $tagid = tag_get_id($tag); tag_set_flag($tagid);