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
parent
commit
3f7a503bfa
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      CHANGELOG.md
  2. 2
      libs/common/src/lib/permissions.ts

4
CHANGELOG.md

@ -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`)
- 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
### Added

2
libs/common/src/lib/permissions.ts

@ -195,7 +195,7 @@ export function hasReadRestrictedAccessPermission({
return false;
}
const access = user.accessesGet?.find(({ id }) => {
const access = user?.accessesGet?.find(({ id }) => {
return id === impersonationId;
});

Loading…
Cancel
Save