// Fix auth issues for multishop
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13649 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user