diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/TableAuthManager.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/TableAuthManager.java index 4ed81dc7aca..6ca40e670b3 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/TableAuthManager.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/TableAuthManager.java @@ -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