Skip to content

Commit 09ec4d9

Browse files
RANGER-3590 : User with Auditor role in security zone can change a policy's name and description
Signed-off-by: pradeep <[email protected]>
1 parent bfc9c54 commit 09ec4d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

security-admin/src/main/java/org/apache/ranger/rest/ServiceREST.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3551,7 +3551,9 @@ void ensureAdminAccess(RangerPolicy policy) {
35513551
//for zone policy create /update / delete
35523552
if(!StringUtils.isEmpty(policy.getZoneName()) && serviceMgr.isZoneAdmin(policy.getZoneName())){
35533553
isAllowed = true;
3554-
}else{
3554+
}else if(!StringUtils.isEmpty(policy.getZoneName()) && serviceMgr.isZoneAuditor(policy.getZoneName())){
3555+
isAllowed = false;
3556+
}else {
35553557
isAllowed = hasAdminAccess(policy, userName, userGroups);
35563558
}
35573559

0 commit comments

Comments
 (0)