// Fix categories permissions

This commit is contained in:
tDidierjean committed 2012-01-12 14:15:45 +00:00
1 parent ce46f83c97
commit ba38481fe7
1 file changed
+4 -1
@@ -237,13 +237,16 @@ class AdminCategoriesControllerCore extends AdminController
public function initProcess() public function initProcess()
{ {
if (Tools::isSubmit('add'.$this->table.'root') && $this->tabAccess['add']) if (Tools::isSubmit('add'.$this->table.'root'))
{
if ($this->tabAccess['add'])
{ {
$this->action = 'add'.$this->table.'root'; $this->action = 'add'.$this->table.'root';
$this->display = 'edit'; $this->display = 'edit';
} }
else else
$this->errors[] = Tools::displayError('You do not have permission to edit here.'); $this->errors[] = Tools::displayError('You do not have permission to edit here.');
}
parent::initProcess(); parent::initProcess();