From 944b8f89b8dd87bf444503d0815aa69ed19f599d Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 20 Nov 2010 13:31:46 +0000 Subject: Fixes #2668 adding getOwnerGUID() git-svn-id: http://code.elgg.org/elgg/trunk@7378 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib/entities.php') diff --git a/engine/lib/entities.php b/engine/lib/entities.php index cac2e2959..57a98ae40 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -1930,7 +1930,7 @@ function can_edit_entity($entity_guid, $user_guid = 0) { // Test user if possible - should default to false unless a plugin hook says otherwise if ($user) { - if ($entity->getOwner() == $user->getGUID()) { + if ($entity->getOwnerGUID() == $user->getGUID()) { $return = true; } if ($entity->container_guid == $user->getGUID()) { -- cgit v1.2.3