aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-25 19:30:38 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-25 19:30:38 +0000
commit6a22a33ae10f3e8e32f5992802930298c1c3e12a (patch)
treefa7e89e63334f9639b68c9e37fab4973f068bb06 /engine
parentad4967605b7a1a0bdbda30600a51cf3941de0d25 (diff)
downloadelgg-6a22a33ae10f3e8e32f5992802930298c1c3e12a.tar.gz
elgg-6a22a33ae10f3e8e32f5992802930298c1c3e12a.tar.bz2
Actually fetching the user
git-svn-id: https://code.elgg.org/elgg/trunk@1547 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/entities.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 2fa00b849..236aa880e 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -1617,7 +1617,9 @@
function can_edit_entity_metadata($entity_guid, $user_guid = 0) {
if ($entity = get_entity($entity_guid)) {
- $return = can_edit_entity($entity_guid, $user_guid);
+ $return = can_edit_entity($entity_guid, $user_guid);
+
+ $user = get_entity($user_guid);
$return = trigger_plugin_hook('permissions_check:metadata',$entity->type,array('entity' => $entity, 'user' => $user),$return);
return $return;
} else {