aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/admin.php
diff options
context:
space:
mode:
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() {