diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-12 17:17:56 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-12 17:17:56 +0000 |
commit | 54886446ade7be52ed93efc90dbade5f93ce3220 (patch) | |
tree | a31fa19f42b5df91ecb9aa713c8eb708b3b0f104 | |
parent | 0b3d3ea0432112d244a13c053240e09f185b8d28 (diff) | |
download | elgg-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
-rw-r--r-- | engine/lib/access.php | 5 |
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 {
|