[-] BO : fixed bug #PSCFV-5230 - Employees skip permits on bulk delete category

This commit is contained in:
vAugagneur committed 2012-10-25 13:16:20 +00:00
1 parent 329ec2e272
commit 3b031d45cf
1 file changed
+5
@@ -564,6 +564,8 @@ class AdminCategoriesControllerCore extends AdminController
} }
protected function processBulkDelete() protected function processBulkDelete()
{
if ($this->tabAccess['delete'] === '1')
{ {
$cats_ids = array(); $cats_ids = array();
foreach (Tools::getValue($this->table.'Box') as $id_category) foreach (Tools::getValue($this->table.'Box') as $id_category)
@@ -583,6 +585,9 @@ class AdminCategoriesControllerCore extends AdminController
else else
return false; return false;
} }
else
$this->errors[] = Tools::displayError('You do not have permission to delete here.');
}
public function processDelete() public function processDelete()
{ {