From 952fdce249b070a596c64bccb2ce98eee56d9b4d Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 16 Sep 2009 00:03:44 +0000 Subject: Fixes #1238: Added ElggExtender::getOwnerEntity() and changed ElggExtender::getOwner() to return just the GUID. Also, this fixes a bug with checking permissions on annotations. git-svn-id: https://code.elgg.org/elgg/trunk@3487 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/extender.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'engine/lib') diff --git a/engine/lib/extender.php b/engine/lib/extender.php index f3f3753bc..456a1f778 100644 --- a/engine/lib/extender.php +++ b/engine/lib/extender.php @@ -80,7 +80,17 @@ */ public function getOwner() { - return get_user($this->owner_guid); + return $this->owner_guid; + } + + /** + * Return the owner entity + * + * @return mixed + */ + public function getOwnerEntity() + { + return get_user($this->owner_guid); } /** @@ -437,4 +447,4 @@ /** Register the hook */ register_plugin_hook("import", "all", "import_extender_plugin_hook", 2); -?> \ No newline at end of file +?> -- cgit v1.2.3