aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/access.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/lib/access.php b/engine/lib/access.php
index b290700eb..9882c512f 100644
--- a/engine/lib/access.php
+++ b/engine/lib/access.php
@@ -83,6 +83,11 @@
if (!empty($collection->id)) $tmp_access_array[] = $collection->id;
}
+ if ($user = get_entity($user_id)) {
+ if ($user instanceof ElggUser && $user->admin)
+ $tmp_access_array[] = 0;
+ }
+
$access_array[$user_id] = $tmp_access_array;
} else {