diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-20 13:31:46 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-20 13:31:46 +0000 |
commit | 944b8f89b8dd87bf444503d0815aa69ed19f599d (patch) | |
tree | 6786d1a4cf55f27ca6fa46364da649932b750e7e /engine/lib | |
parent | ffd932df92f857a9607b119a0953ee353c422119 (diff) | |
download | elgg-944b8f89b8dd87bf444503d0815aa69ed19f599d.tar.gz elgg-944b8f89b8dd87bf444503d0815aa69ed19f599d.tar.bz2 |
Fixes #2668 adding getOwnerGUID()
git-svn-id: http://code.elgg.org/elgg/trunk@7378 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/entities.php | 2 | ||||
-rw-r--r-- | engine/lib/extender.php | 2 |
2 files changed, 2 insertions, 2 deletions
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()) { diff --git a/engine/lib/extender.php b/engine/lib/extender.php index b894c5e59..8df207767 100644 --- a/engine/lib/extender.php +++ b/engine/lib/extender.php @@ -144,7 +144,7 @@ function can_edit_extender($extender_id, $type, $user_guid = 0) { } // If the owner is the specified user, great! They can edit. - if ($extender->getOwner() == $user->getGUID()) { + if ($extender->getOwnerGUID() == $user->getGUID()) { return true; } |