[icinga-checkins] icinga.org: icinga-web/r1.8: Disabled storing user preferences into the session data (refs #3727)

git at icinga.org git at icinga.org
Sun Mar 17 11:42:47 CET 2013


Module: icinga-web
Branch: r1.8
Commit: 168115c969e50f879f4d399e22f3ae2cf0a4ad6c
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=168115c969e50f879f4d399e22f3ae2cf0a4ad6c

Author: Markus Frosch <markus at lazyfrosch.de>
Date:   Sun Mar 17 10:28:03 2013 +0100

Disabled storing user preferences into the session data (refs #3727)

---

 app/modules/AppKit/lib/database/models/NsmUser.php |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/app/modules/AppKit/lib/database/models/NsmUser.php b/app/modules/AppKit/lib/database/models/NsmUser.php
index bd7a777..a6891bb 100755
--- a/app/modules/AppKit/lib/database/models/NsmUser.php
+++ b/app/modules/AppKit/lib/database/models/NsmUser.php
@@ -221,9 +221,9 @@ class NsmUser extends BaseNsmUser {
 
             AppKitLogger::warn("New: Setting %s => %s", $key,$pref->toArray(false) );
         }
-        NsmUser::$cachedPreferences[$key] = array();
         NsmUser::$cachedPreferences[$key] = $val;
-        $this->getStorage()->write("appkit.nsm_user.preferences",self::$cachedPreferences);
+        // disabled storing cached prefs into session -mfrosch
+        //$this->getStorage()->write("appkit.nsm_user.preferences",self::$cachedPreferences);
         return true;
     }
 
@@ -325,7 +325,8 @@ class NsmUser extends BaseNsmUser {
         if(!empty(self::$cachedPreferences)) {
             return self::$cachedPreferences;
         }
-        self::$cachedPreferences = $this->getStorage()->read("appkit.nsm_user.preferences");
+        // disabled storing cached prefs into session -mfrosch
+        //self::$cachedPreferences = $this->getStorage()->read("appkit.nsm_user.preferences");
         if(!empty(self::$cachedPreferences)) {
             return self::$cachedPreferences;
         }
@@ -347,7 +348,8 @@ class NsmUser extends BaseNsmUser {
             }
         }
         self::$cachedPreferences = $out;
-        $this->getStorage()->write("appkit.nsm_user.preferences",self::$cachedPreferences);
+        // disabled storing cached prefs into session -mfrosch
+        //$this->getStorage()->write("appkit.nsm_user.preferences",self::$cachedPreferences);
         return $out;
     }
 





More information about the icinga-checkins mailing list