From 6bff18eadd917298e7b8479ce62c8141075e2219 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Fri, 23 Sep 2011 09:41:03 +0000 Subject: [PATCH] set the session cache only when not in admin mode --- phpgwapi/inc/class.auth_ldap.inc.php | 2 +- phpgwapi/inc/class.auth_sql.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.auth_ldap.inc.php b/phpgwapi/inc/class.auth_ldap.inc.php index e9117e9511..1e203503bc 100644 --- a/phpgwapi/inc/class.auth_ldap.inc.php +++ b/phpgwapi/inc/class.auth_ldap.inc.php @@ -245,7 +245,7 @@ class auth_ldap implements auth_backend { return false; } - egw_cache::setSession('phpgwapi','auth_alpwchange_val',$entry['shadowlastchange']); + if (!$admin) egw_cache::setSession('phpgwapi','auth_alpwchange_val',$entry['shadowlastchange']); return true; } diff --git a/phpgwapi/inc/class.auth_sql.inc.php b/phpgwapi/inc/class.auth_sql.inc.php index 20ffa045b0..f077fb910e 100644 --- a/phpgwapi/inc/class.auth_sql.inc.php +++ b/phpgwapi/inc/class.auth_sql.inc.php @@ -184,7 +184,7 @@ class auth_sql implements auth_backend ),__LINE__,__FILE__); if(!$this->db->affected_rows()) return false; - egw_cache::setSession('phpgwapi','auth_alpwchange_val',$lastpwdchange); + if (!$admin) egw_cache::setSession('phpgwapi','auth_alpwchange_val',$lastpwdchange); return true; }