aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/admin.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-13 09:15:29 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-13 09:15:29 +0000
commit851a05cb77d9b33e7b853ee985d8278abde55545 (patch)
tree900909334d8055909755b918f51f107367426ba7 /engine/lib/admin.php
parente42621f802c25c0284f33e6236d971c728f20f7c (diff)
downloadelgg-851a05cb77d9b33e7b853ee985d8278abde55545.tar.gz
elgg-851a05cb77d9b33e7b853ee985d8278abde55545.tar.bz2
Admins now see all!
git-svn-id: https://code.elgg.org/elgg/trunk@1873 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/admin.php')
-rw-r--r--engine/lib/admin.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/engine/lib/admin.php b/engine/lib/admin.php
index cd8d60799..e8ec019ac 100644
--- a/engine/lib/admin.php
+++ b/engine/lib/admin.php
@@ -51,7 +51,17 @@
register_action('admin/user/makeadmin', false, "", true);
// Register some actions
- register_action('admin/site/update_basic', false, "", true); // Register basic site admin action
+ register_action('admin/site/update_basic', false, "", true); // Register basic site admin action
+
+ if (isloggedin()) {
+ if ($_SESSION['user'] instanceof ElggUser) {
+ if ($_SESSION['user']->admin) {
+ global $is_admin;
+ $is_admin = true;
+ }
+ }
+ }
+
}
function admin_pagesetup() {