diff options
-rw-r--r-- | engine/lib/access.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/access.php b/engine/lib/access.php index 1a4a22162..678c9e77b 100644 --- a/engine/lib/access.php +++ b/engine/lib/access.php @@ -958,7 +958,7 @@ function access_init() { function elgg_override_permissions_hook($hook, $type, $value, $params) { $user = elgg_extract('user', $params); if (!$user) { - $user = elgg_get_logged_in_user(); + $user = elgg_get_logged_in_user_entity(); } if (!$user instanceof ElggUser) { |