Skip to content

Commit 73b3dc9

Browse files
committed
[PLINK-699] - @RolesAllowed is not checking inheritance of privileges.
1 parent 71c2ace commit 73b3dc9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/base/api/src/main/java/org/picketlink/authorization/util/AuthorizationUtil.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ public static boolean hasRole(Identity identity, PartitionManager partitionManag
215215
if (!result.isEmpty()) {
216216
return true;
217217
}
218+
219+
return relationshipManager.inheritsPrivileges(identity.getAccount(), role);
218220
}
219221
}
220222
}

0 commit comments

Comments
 (0)