// don't display some field when an employee edit it's own profile

This commit is contained in:
Rémi Gaillard
2013-10-10 11:35:05 +02:00
parent 067c78f868
commit 7fdf6e614f
@@ -134,8 +134,7 @@ class AdminEmployeesControllerCore extends AdminController
if ($this->context->employee->id == Tools::getValue('id_employee'))
{
$this->tabAccess['view'] = '1';
if (!$this->tabAccess['edit'])
$this->restrict_edition = true;
$this->restrict_edition = true;
$this->tabAccess['edit'] = '1';
}
}