Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

Commit

Permalink
MDL-49084 core_tag: add capability check to flag as inappropriate action
Browse files Browse the repository at this point in the history
  • Loading branch information
lameze authored and danpoltawski committed Mar 2, 2015
1 parent ead8b28 commit b771b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tag/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
break;

case 'flaginappropriate':

require_capability('moodle/tag:flag', context_system::instance());
$tagid = tag_get_id($tag);

tag_set_flag($tagid);
Expand Down

0 comments on commit b771b31

Please sign in to comment.