// Filter list of entities per shop in admin if employee is not super admin #PSCFV-2525

This commit is contained in:
rMalie
2012-05-30 08:22:48 +00:00
parent e6264ba698
commit a118eb7a5e
2 changed files with 16 additions and 6 deletions
+1 -1
View File
@@ -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)