Masum ULU
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
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, |
|
|
|
visible: data => { |
|
|
|
const configState = data.getInjected(ConfigStateService); |
|
|
|
const currentUser = configState.getOne('currentUser') as CurrentUserDto; |
|
|
|
return currentUser.id !== data.record.id; |
|
|
|
const currentUserId = configState.getDeep('currentUser.id'); |
|
|
|
return currentUserId !== data.record.id; |
|
|
|
}, |
|
|
|
}; |
|
|
|
} |
|
|
|
|