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

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