Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ead8b28
)
MDL-49084 core_tag: add capability check to flag as inappropriate action
author
Simey Lameze
<simey@moodle.com>
Wed, 11 Feb 2015 06:14:43 +0000
(14:14 +0800)
committer
Dan Poltawski
<dan@moodle.com>
Mon, 2 Mar 2015 12:52:11 +0000
(12:52 +0000)
tag/user.php
patch
|
blob
|
blame
|
history
diff --git
a/tag/user.php
b/tag/user.php
index
983fdb9
..
8b8d7ab
100644
(file)
--- 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);