// Set context to single shop if an employee have auth on only one shop #PSCFV-2182

This commit is contained in:
rMalie
2012-05-10 08:50:39 +00:00
parent b55b9ddbfd
commit 83002ff43d

View File

@@ -1692,6 +1692,11 @@ class AdminControllerCore extends Controller
}
}
}
else if (Shop::getTotalShops(false, null) < 2)
{
$shop_id = $this->context->employee->getDefaultShopID();
Shop::setContext(Shop::CONTEXT_SHOP, $shop_id);
}
// Check multishop context and set right context if need
if (!($this->multishop_context & Shop::getContext()))