Browse Source
Bugfix/add missing guards in isRestrictedView() of permissions (#5540)
* Add missing guards
pull/5527/head
Thomas Kaul
4 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
libs/common/src/lib/permissions.ts
|
|
@ -197,5 +197,5 @@ export function hasRole(aUser: UserWithSettings, aRole: Role) { |
|
|
|
} |
|
|
|
|
|
|
|
export function isRestrictedView(aUser: UserWithSettings) { |
|
|
|
return aUser.settings.settings.isRestrictedView ?? false; |
|
|
|
return aUser?.settings?.settings?.isRestrictedView ?? false; |
|
|
|
} |
|
|
|