Skip to content

Commit

Permalink
RANGER-4343: Atlas default policy is showing 2 admin users in policy …
Browse files Browse the repository at this point in the history
…items

Signed-off-by: Mehul Parikh <[email protected]>
  • Loading branch information
Sanket-Shelar authored and mehulbparikh committed Aug 30, 2023
1 parent 3a121a8 commit b1c0ac6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ public List<RangerPolicy> getDefaultRangerPolicies() throws Exception {

// 1. add adminUser to every policyItem
for (RangerPolicyItem defaultPolicyItem : defaultPolicy.getPolicyItems()) {
defaultPolicyItem.getUsers().add(adminUser);
if(!defaultPolicyItem.getUsers().contains(adminUser)) {
defaultPolicyItem.getUsers().add(adminUser);
}
}

// 2. add a policy-item for rangertagsync user with 'entity-read' permission in the policy for 'entity-type'
Expand Down

0 comments on commit b1c0ac6

Please sign in to comment.