aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-05-27 10:26:33 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-05-27 10:26:33 +0000
commitb10991f17a70886be7d13bc18786ac40d7918952 (patch)
tree2a3604b53deba82570aa4d28c8dfe271254258b8 /engine
parent83532903cc5e63d0f47e63a2169ce4e58bccb928 (diff)
downloadelgg-b10991f17a70886be7d13bc18786ac40d7918952.tar.gz
elgg-b10991f17a70886be7d13bc18786ac40d7918952.tar.bz2
Admin shortcut flag set on login as well as init
git-svn-id: https://code.elgg.org/elgg/trunk@3303 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/sessions.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php
index 3e682976c..e3988955b 100644
--- a/engine/lib/sessions.php
+++ b/engine/lib/sessions.php
@@ -324,6 +324,12 @@
// Update statistics
set_last_login($_SESSION['guid']);
reset_login_failure_count($user->guid); // Reset any previous failed login attempts
+
+ // Set admin shortcut flag if this is an admin
+ if (isadminloggedin()) {
+ global $is_admin;
+ $is_admin = true;
+ }
return true;