aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/access.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-12 17:17:56 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-12 17:17:56 +0000
commit54886446ade7be52ed93efc90dbade5f93ce3220 (patch)
treea31fa19f42b5df91ecb9aa713c8eb708b3b0f104 /engine/lib/access.php
parent0b3d3ea0432112d244a13c053240e09f185b8d28 (diff)
downloadelgg-54886446ade7be52ed93efc90dbade5f93ce3220.tar.gz
elgg-54886446ade7be52ed93efc90dbade5f93ce3220.tar.bz2
Admins can now see private data.
git-svn-id: https://code.elgg.org/elgg/trunk@1859 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/access.php')
-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 {