Skip to content

Commit

Permalink
RANGER-4385: Fix role filtering logic in RolePredicateUtil (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
IOrzo authored Sep 9, 2024
1 parent 4f6923a commit a463e2f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public boolean evaluate(Object object) {
List<RangerRole.RoleMember> roles = role.getRoles();

for (RangerRole.RoleMember member : roles) {
ret = StringUtils.equals(role.getName(), roleName);
ret = StringUtils.equals(member.getName(), roleName);

if (ret) {
break;
Expand Down Expand Up @@ -109,7 +109,7 @@ public boolean evaluate(Object object) {
List<RangerRole.RoleMember> roles = role.getRoles();

for (RangerRole.RoleMember member : roles) {
ret = StringUtils.containsIgnoreCase(role.getName(), roleNamePartial);
ret = StringUtils.containsIgnoreCase(member.getName(), roleNamePartial);

if (ret) {
break;
Expand Down

0 comments on commit a463e2f

Please sign in to comment.