// MERGE product_multistore branch : product fields are now editable per shop
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14682 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -270,9 +270,9 @@ class EmployeeCore extends ObjectModel
|
||||
break;
|
||||
|
||||
case Shop::CONTEXT_GROUP:
|
||||
if ($context->shop->checkIfGroupShopExist(Shop::getContextGroupShopID()))
|
||||
if ($context->shop->checkIfShopGroupExist(Shop::getContextShopGroupID()))
|
||||
{
|
||||
$shops = $context->shop->getIdShopsByIdGroupShop(Shop::getContextGroupShopID());
|
||||
$shops = $context->shop->getIdShopsByIdShopGroup(Shop::getContextShopGroupID());
|
||||
foreach ($shops as $shop)
|
||||
if (!in_array($shop, Employee::getEmployeeShopById($id_employee)))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user