private boolean hasAccessTable(Set<TablePermission> permissions, Permission.Action action) {
    if (permissions == null) {
      return false;
    }
    for (TablePermission permission : permissions) {
      if (permission.implies(action)) {
        return true;
      }
    }
    return false;
  }
Checks if the user has access to the full table or at least a family/qualifier for the
specified action.
@param user   user name
@param table  table name
@param action action in one of [Read, Write, Create, Exec, Admin]
@return true if the user has access to the table, false otherwise
hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AuthManager.java