// Fix "home" permissions
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12396 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user