Skip to content

Commit b1cfc49

Browse files
committed
improv: JCR Role Binding DAO
1 parent 69d7aff commit b1cfc49

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

repository/src/main/java/org/pentaho/platform/security/policy/rolebased/JcrRoleAuthorizationPolicyRoleBindingDao.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,10 @@ protected void invalidateDecisionCacheForRole( String runtimeRoleName ) {
169169
// Regarding actions / logical-roles, because derived action rules exist, it would not be enough to invalidate
170170
// requests which also reference the logical-roles being changed. So this condition is left out, at the cost of
171171
// invalidating more requests than strictly necessary.
172+
var role = new AuthorizationRole( runtimeRoleName );
173+
172174
decisionCache.invalidateAll( key ->
173-
key.getRequest().getAllRoles().contains( new AuthorizationRole( runtimeRoleName ) )
175+
key.getRequest().getAllRoles().contains( role )
174176
);
175177
}
176178
}

0 commit comments

Comments
 (0)