ChenSammi commented on code in PR #2466:
URL: https://github.com/apache/ozone/pull/2466#discussion_r1130335701
##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OzoneAclUtil.java:
##########
@@ -88,17 +89,18 @@ public static List<OzoneAcl> filterAclList(String
identityName,
return retList;
}
- private static boolean checkAccessInAcl(OzoneAcl a, String[] groups,
- String username, ACLType aclToCheck) {
+ private static boolean checkAccessInAcl(OzoneAcl a, UserGroupInformation ugi,
+ ACLType aclToCheck) {
BitSet rights = a.getAclBitSet();
switch (a.getType()) {
case USER:
- if (a.getName().equals(username)) {
+ if (a.getName().equals(ugi.getShortUserName()) || a.getName()
+ .equals(ugi.getUserName())) {
Review Comment:
make sense.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]