From 54886446ade7be52ed93efc90dbade5f93ce3220 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 12 Aug 2008 17:17:56 +0000 Subject: Admins can now see private data. git-svn-id: https://code.elgg.org/elgg/trunk@1859 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/access.php | 5 +++++ 1 file changed, 5 insertions(+) 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 { -- cgit v1.2.3