MDL-49084 core_tag: add capability check to flag as inappropriate action
authorSimey Lameze <simey@moodle.com>
Wed, 11 Feb 2015 06:14:43 +0000 (14:14 +0800)
committerDan Poltawski <dan@moodle.com>
Mon, 2 Mar 2015 12:52:11 +0000 (12:52 +0000)
tag/user.php

index 983fdb9..8b8d7ab 100644 (file)
@@ -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);