Fixed: permission issue in EmployeeController in back-office

This commit is contained in:
Sumit Panwar
2025-06-04 15:23:37 +05:30
parent 66d2c98aba
commit a921d17f20

View File

@@ -159,9 +159,9 @@ class AdminEmployeesControllerCore extends AdminController
// An employee can edit its own profile
if ($this->context->employee->id == Tools::getValue('id_employee')) {
$this->tabAccess['view'] = '1';
$this->tabAccess['view'] = 1;
$this->restrict_edition = true;
$this->tabAccess['edit'] = '1';
$this->tabAccess['edit'] = 1;
}
}