// Split AdminController::init() in init() and initProcess()

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10739 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-11-29 14:20:22 +00:00
parent 71ac9c59ef
commit 51f4b16986
2 changed files with 184 additions and 178 deletions
@@ -338,6 +338,18 @@ class AdminEmployeesControllerCore extends AdminController
}
return parent::postProcess();
}
public function initProcess()
{
// If employee is editing its own entry, its ok
if ($this->tabAccess['edit'] !== '1'
&& $this->table == 'employee'
&& $this->context->employee->id == Tools::getValue('id_employee')
&& Tools::isSubmit('updateemployee'))
$this->tabAccess['edit'] = 1;
parent::initProcess();
}
}