aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/admin.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/engine/lib/admin.php b/engine/lib/admin.php
index 87a401941..287a62952 100644
--- a/engine/lib/admin.php
+++ b/engine/lib/admin.php
@@ -54,13 +54,9 @@
// Register some actions
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;
- }
- }
+ if (isadminloggedin()) {
+ global $is_admin;
+ $is_admin = true;
}
}