diff --git a/htdocs/user/bank.php b/htdocs/user/bank.php index 4ec919358e1d9..b7a9ea4ef2ca2 100644 --- a/htdocs/user/bank.php +++ b/htdocs/user/bank.php @@ -446,7 +446,7 @@ print "\n"; // Date of birth - if ($user->rights->hrm->read_personal_information->read || $user->rights->hrm->write_personal_information->write) { + if ($user->hasRight('hrm', 'read_personal_information', 'read') || $user->hasRight('hrm', 'write_personal_information', 'write')) { print ''; print ''; print $form->editfieldkey("DateOfBirth", 'birth', $object->birth, $object, $user->rights->user->user->creer); @@ -457,7 +457,7 @@ } // Personal email - if ($user->rights->hrm->read_personal_information->read || $user->rights->hrm->write_personal_information->write) { + if ($user->hasRight('hrm', 'read_personal_information', 'read') || $user->hasRight('hrm', 'write_personal_information', 'write')) { print ''; print ''; print $form->editfieldkey("UserPersonalEmail", 'personal_email', $object->personal_email, $object, $user->rights->user->user->creer || $user->rights->hrm->write_personal_information->write); @@ -468,7 +468,7 @@ } // Personal phone - if ($user->rights->hrm->read_personal_information->read || $user->rights->hrm->write_personal_information->write) { + if ($user->hasRight('hrm', 'read_personal_information', 'read') || $user->hasRight('hrm', 'write_personal_information', 'write')) { print ''; print ''; print $form->editfieldkey("UserPersonalMobile", 'personal_mobile', $object->personal_mobile, $object, $user->rights->user->user->creer || $user->rights->hrm->write_personal_information->write); @@ -533,7 +533,7 @@ } // Employee Number - if ($user->rights->hrm->read_personal_information->read || $user->rights->hrm->write_personal_information->write) { + if ($user->hasRight('hrm', 'read_personal_information', 'read') || $user->hasRight('hrm', 'write_personal_information', 'write')) { print ''; print ''; print $form->editfieldkey("RefEmployee", 'ref_employee', $object->ref_employee, $object, $user->rights->user->user->creer || $user->rights->hrm->write_personal_information->write); @@ -544,7 +544,7 @@ } // National registration number - if ($user->rights->hrm->read_personal_information->read || $user->rights->hrm->write_personal_information->write) { + if ($user->hasRight('hrm', 'read_personal_information', 'read') || $user->hasRight('hrm', 'write_personal_information', 'write')) { print ''; print ''; print $form->editfieldkey("NationalRegistrationNumber", 'national_registration_number', $object->national_registration_number, $object, $user->rights->user->user->creer || $user->rights->hrm->write_personal_information->write);