HBASE-12811 [AccessController] NPE while scanning a table with user not having READ permission on the namespace (Ashish)
This commit is contained in:
parent
ee32eebeab
commit
4ea490b63a
|
@ -508,8 +508,8 @@ public class TableAuthManager {
|
|||
}
|
||||
if (table == null) table = AccessControlLists.ACL_TABLE_NAME;
|
||||
// Namespace authorization supercedes table level
|
||||
if (authorize(getNamespacePermissions(table.getNamespaceAsString()).getGroup(groupName),
|
||||
table, family, action)) {
|
||||
String namespace = table.getNamespaceAsString();
|
||||
if (authorize(getNamespacePermissions(namespace).getGroup(groupName), namespace, action)) {
|
||||
return true;
|
||||
}
|
||||
// Check table level
|
||||
|
|
Loading…
Reference in New Issue