// Set context to single shop if an employee have auth on only one shop #PSCFV-2182
This commit is contained in:
@@ -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
|
// Check multishop context and set right context if need
|
||||||
if (!($this->multishop_context & Shop::getContext()))
|
if (!($this->multishop_context & Shop::getContext()))
|
||||||
|
|||||||
Reference in New Issue
Block a user