HDFS-15345. RouterPermissionChecker#checkSuperuserPrivilege should use UGI#getGroups after HADOOP-13442.
This commit is contained in:
parent
96bbc3bc97
commit
047d8879e7
@ -126,7 +126,7 @@ public void checkSuperuserPrivilege() throws AccessControlException {
|
||||
}
|
||||
|
||||
// Is the user a member of the super group?
|
||||
List<String> groups = Arrays.asList(ugi.getGroupNames());
|
||||
List<String> groups = ugi.getGroups();
|
||||
if (groups.contains(superGroup)) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user