// Filter list of entities per shop in admin if employee is not super admin #PSCFV-2525
This commit is contained in:
@@ -1988,7 +1988,7 @@ class AdminControllerCore extends Controller
|
||||
if ($this->multishop_context && Shop::isTableAssociated($this->table) && !empty($this->className))
|
||||
{
|
||||
$def = ObjectModel::getDefinition($this->className);
|
||||
if (Shop::getContext() != Shop::CONTEXT_ALL || !empty($def['multishop']))
|
||||
if (Shop::getContext() != Shop::CONTEXT_ALL || !empty($def['multishop']) || !$this->context->employee->isSuperAdmin())
|
||||
{
|
||||
$idenfier_shop = Shop::getContextListShopID();
|
||||
if (!$this->_group)
|
||||
|
||||
Reference in New Issue
Block a user