[-] BO : super admins are now added to all shops #PSCFV-3561

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16991 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-08-24 09:10:30 +00:00
parent efe90062c9
commit 21e32ce611
2 changed files with 16 additions and 0 deletions
@@ -411,6 +411,21 @@ class AdminEmployeesControllerCore extends AdminController
$_GET[$key][$row['id_shop']] = 1;
}
}
if ($_POST['id_profile'] == _PS_ADMIN_PROFILE_)
{
$result = Db::getInstance()->executeS('SELECT id_shop FROM '._DB_PREFIX_.'shop');
foreach ($result as $row)
{
$key = 'checkBoxShopAsso_'.$this->table;
if (!isset($_POST[$key]))
$_POST[$key] = array();
if (!isset($_GET[$key]))
$_GET[$key] = array();
$_POST[$key][$row['id_shop']] = 1;
$_GET[$key][$row['id_shop']] = 1;
}
}
if ($employee->isLastAdmin())
{