// Fix "home" permissions

This commit is contained in:
tDidierjean
2012-01-12 15:12:50 +00:00
parent 5213e1ac88
commit 0a064456cb
3 changed files with 5 additions and 16 deletions
@@ -368,18 +368,6 @@ 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();
}*/
public function initContent()
{
if ($this->context->employee->id == Tools::getValue('id_employee'))