diff --git a/config/config.inc.php b/config/config.inc.php index 4989b13a7..8a056b9f0 100644 --- a/config/config.inc.php +++ b/config/config.inc.php @@ -125,6 +125,10 @@ if (defined('_PS_ADMIN_DIR_')) $employee = new Employee($cookie->id_employee); Context::getContext()->employee = $employee; + /* Auth on shops are recached after employee assignation */ + if ($employee->id_profile != _PS_ADMIN_PROFILE_) + Shop::cacheShops(true); + $cookie->id_lang = (int)$employee->id_lang; } else