aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-09-16 00:03:44 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-09-16 00:03:44 +0000
commit952fdce249b070a596c64bccb2ce98eee56d9b4d (patch)
treeddda5b4eddedd7052b705a1d5266a1e3c9e6a470 /engine
parente2e8e4e03a3d3b57627ee6bf3a3d5c8f40eba18f (diff)
downloadelgg-952fdce249b070a596c64bccb2ce98eee56d9b4d.tar.gz
elgg-952fdce249b070a596c64bccb2ce98eee56d9b4d.tar.bz2
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
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/extender.php14
1 files changed, 12 insertions, 2 deletions
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
+?>