Browse Source
Bugfix/add missing guard in hasReadRestrictedAccessPermission() (#6569)
* Add missing guard in hasReadRestrictedAccessPermission()
* Update changelog
pull/6264/head^2
Thomas Kaul
6 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
5 additions and
1 deletions
-
CHANGELOG.md
-
libs/common/src/lib/permissions.ts
|
|
@ -16,6 +16,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
- Improved the language localization for Polish (`pl`) |
|
|
- Improved the language localization for Polish (`pl`) |
|
|
- Upgraded `@trivago/prettier-plugin-sort-imports` from version `5.2.2` to `6.0.2` |
|
|
- Upgraded `@trivago/prettier-plugin-sort-imports` from version `5.2.2` to `6.0.2` |
|
|
|
|
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
|
|
|
|
|
|
- Fixed an issue by adding a missing guard in the public access for portfolio sharing |
|
|
|
|
|
|
|
|
## 2.250.0 - 2026-03-17 |
|
|
## 2.250.0 - 2026-03-17 |
|
|
|
|
|
|
|
|
### Added |
|
|
### Added |
|
|
|
|
|
@ -195,7 +195,7 @@ export function hasReadRestrictedAccessPermission({ |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const access = user.accessesGet?.find(({ id }) => { |
|
|
const access = user?.accessesGet?.find(({ id }) => { |
|
|
return id === impersonationId; |
|
|
return id === impersonationId; |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|