From 7fdf6e614fe4074346154e3f2f283ac4848cf90d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Thu, 10 Oct 2013 11:35:05 +0200 Subject: [PATCH] // don't display some field when an employee edit it's own profile --- controllers/admin/AdminEmployeesController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/controllers/admin/AdminEmployeesController.php b/controllers/admin/AdminEmployeesController.php index 6091cb199..b8bf28e44 100644 --- a/controllers/admin/AdminEmployeesController.php +++ b/controllers/admin/AdminEmployeesController.php @@ -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'; } }