Skip to content

Commit

Permalink
Merge pull request #7224 from deutschebank/db-contrib/7215-Expand-Aut…
Browse files Browse the repository at this point in the history
…h-Statements-to-apply-to-Actors

Db contrib/7215 expand auth statements to apply to actors
  • Loading branch information
davidwatkins73 authored Feb 21, 2025
2 parents fa7ec59 + e9de1ad commit 44e9d47
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,11 @@ private static boolean checkScopeMatches(BucketKey bucketKey,
EntityReference scopeEntity,
Long scopeEntityOuId) {
if (bucketKey.vantagePoint().kind() == EntityKind.ORG_UNIT) {
return scopeEntityOuId != null && childOUs.contains(scopeEntityOuId);
if (scopeEntity.kind() == EntityKind.ACTOR) {
return null == scopeEntityOuId;
} else {
return scopeEntityOuId != null && childOUs.contains(scopeEntityOuId);
}
} else {
// point-to-point flows e.g. ACTOR or APPLICATION
return scopeEntity.equals(bucketKey.vantagePoint());
Expand Down

0 comments on commit 44e9d47

Please sign in to comment.