MDL-49084 core_tag: add capability check to flag as inappropriate action
This commit is contained in:
committed by
Dan Poltawski
parent
3a89cea7f7
commit
1a344ea46f
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user