Browse Source

Update default-users-form-props.ts

pull/17518/head
Masum ULU 3 years ago
committed by GitHub
parent
commit
9523b2dade
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      npm/ng-packs/packages/identity/src/lib/defaults/default-users-form-props.ts

4
npm/ng-packs/packages/identity/src/lib/defaults/default-users-form-props.ts

@ -76,8 +76,8 @@ export const DEFAULT_USERS_EDIT_FORM_PROPS = DEFAULT_USERS_CREATE_FORM_PROPS.map
...prop, ...prop,
visible: data => { visible: data => {
const configState = data.getInjected(ConfigStateService); const configState = data.getInjected(ConfigStateService);
const currentUser = configState.getOne('currentUser') as CurrentUserDto; const currentUserId = configState.getDeep('currentUser.id');
return currentUser.id !== data.record.id; return currentUserId !== data.record.id;
}, },
}; };
} }

Loading…
Cancel
Save