aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/access.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/access.php')
-rw-r--r--engine/lib/access.php2
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) {