Skip to content

Commit

Permalink
Fix sub-access rule addition in PrivilegeService
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcolon021 committed Sep 6, 2024
1 parent beeedda commit 1d38776
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ protected void updateAllPrivilegesOnStartup() {
subAccessRules.removeIf(subAccessRule -> subAccessRule.getName().startsWith("AR_ALLOW_"));

// Add the currently allowed query types
accessRule.getSubAccessRule().addAll(this.accessRuleService.getAllowedQueryTypeRules());
subAccessRules.addAll(this.accessRuleService.getAllowedQueryTypeRules());
accessRule.setSubAccessRule(subAccessRules);
this.accessRuleService.save(accessRule);
});
}
Expand Down

0 comments on commit 1d38776

Please sign in to comment.