From 6a22a33ae10f3e8e32f5992802930298c1c3e12a Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 25 Jul 2008 19:30:38 +0000 Subject: Actually fetching the user git-svn-id: https://code.elgg.org/elgg/trunk@1547 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engine/lib') 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 { -- cgit v1.2.3