From 9968fb90118ea4bb3dfe3d88c234857fd333abbe Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 18 Jan 2016 12:56:02 +0100 Subject: [PATCH] Reload CSS after login because the user may have a different theme (WIP) This is just a quick fix. refs #10957 --- library/Icinga/Authentication/Auth.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/Icinga/Authentication/Auth.php b/library/Icinga/Authentication/Auth.php index 2f02adb22..79c32d3bf 100644 --- a/library/Icinga/Authentication/Auth.php +++ b/library/Icinga/Authentication/Auth.php @@ -135,6 +135,8 @@ class Auth } else { $preferences = new Preferences(); } + // TODO(el): Quick-fix for #10957. Only reload CSS if the theme changed. + $this->getResponse()->setReloadCss(true); $user->setPreferences($preferences); $groups = $user->getGroups(); foreach (Config::app('groups') as $name => $config) {