diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-06-03 01:24:14 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-06-03 01:24:14 +0000 |
commit | 33f7cec924ff46d5f890130393fe023d2ddd6100 (patch) | |
tree | 6831afc64cd0d072153736ebb952619205017633 /mod/likes/actions/likes/add.php | |
parent | 1838b57e20dfc70c04767d1729a66a4e2ab72c4c (diff) | |
download | elgg-33f7cec924ff46d5f890130393fe023d2ddd6100.tar.gz elgg-33f7cec924ff46d5f890130393fe023d2ddd6100.tar.bz2 |
Fixes #3497 users can unlike other users content
git-svn-id: http://code.elgg.org/elgg/trunk@9132 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/likes/actions/likes/add.php')
-rw-r--r-- | mod/likes/actions/likes/add.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/likes/actions/likes/add.php b/mod/likes/actions/likes/add.php index f56493864..7ccb19d92 100644 --- a/mod/likes/actions/likes/add.php +++ b/mod/likes/actions/likes/add.php @@ -18,7 +18,7 @@ if (!$entity) { forward(REFERER); } -// cannot like your own stuff +// limit likes through a plugin hook (to prevent liking your own content for example) if (!$entity->canAnnotate(0, 'likes')) { // plugins should register the error message to explain why liking isn't allowed forward(REFERER); |