]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Admin shortcut flag set on login as well as init
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 27 May 2009 10:26:33 +0000 (10:26 +0000)
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 27 May 2009 10:26:33 +0000 (10:26 +0000)
git-svn-id: https://code.elgg.org/elgg/trunk@3303 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/sessions.php

index 3e682976c71c741784d22ce292e723ad64fbd7db..e3988955bf001beb9ea76f3c97fa4bef292339ea 100644 (file)
                // 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;
+                       }
                \r
                        return true;\r
                                \r