Fix regression
This commit is contained in:
parent
18891a44d4
commit
182bccaf04
1 changed files with 2 additions and 2 deletions
|
|
@ -495,7 +495,7 @@ if ($action != 'edit' && $action != 'create') { // If not bank account yet, $ac
|
|||
}
|
||||
|
||||
// Personal email
|
||||
if ($user->hasRight('hrm', 'read_personal_information', 'read') || $user->hasRight('hrm', 'write_personal_information', 'write') || ) {
|
||||
if ($user->hasRight('hrm', 'read_personal_information', 'read') || $user->hasRight('hrm', 'write_personal_information', 'write') || $permissiontosimpleedit) {
|
||||
print '<tr class="nowrap">';
|
||||
print '<td>';
|
||||
print $form->editfieldkey("UserPersonalEmail", 'personal_email', $object->personal_email, $object, $user->hasRight('user', 'user', 'creer') || $user->hasRight('hrm', 'write_personal_information', 'write'));
|
||||
|
|
@ -506,7 +506,7 @@ if ($action != 'edit' && $action != 'create') { // If not bank account yet, $ac
|
|||
}
|
||||
|
||||
// Personal phone
|
||||
if ($user->hasRight('hrm', 'read_personal_information', 'read') || $user->hasRight('hrm', 'write_personal_information', 'write') || ) {
|
||||
if ($user->hasRight('hrm', 'read_personal_information', 'read') || $user->hasRight('hrm', 'write_personal_information', 'write') || $permissiontosimpleedit) {
|
||||
print '<tr class="nowrap">';
|
||||
print '<td>';
|
||||
print $form->editfieldkey("UserPersonalMobile", 'personal_mobile', $object->personal_mobile, $object, $user->hasRight('user', 'user', 'creer') || $user->hasRight('hrm', 'write_personal_information', 'write'));
|
||||
|
|
|
|||
Loading…
Reference in a new issue