From 0030fe2d63684b6612316b5162d34bfaa5dbfee1 Mon Sep 17 00:00:00 2001 From: cash Date: Mon, 21 Feb 2011 02:35:43 +0000 Subject: fixes #2885 #2569 likes controlled by canAnnotate() with plugin hook git-svn-id: http://code.elgg.org/elgg/trunk@8382 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/core/likes/display.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views/default/core/likes') diff --git a/views/default/core/likes/display.php b/views/default/core/likes/display.php index 28ffafcb4..570c4d1ff 100644 --- a/views/default/core/likes/display.php +++ b/views/default/core/likes/display.php @@ -14,7 +14,7 @@ if (!isset($vars['entity'])) { $guid = $vars['entity']->getGUID(); // check to see if the user has already liked this -if (elgg_is_logged_in()) { +if (elgg_is_logged_in() && $vars['entity']->canAnnotate(0, 'likes')) { if (!elgg_annotation_exists($guid, 'likes')) { $url = elgg_get_site_url() . "action/likes/add?guid={$guid}"; $params = array( -- cgit v1.2.3