public boolean authorizeUserFamily(User user, TableName table, byte[] family,
    Permission.Action action) {
    PermissionCache<TablePermission> tblPermissions =
      tableCache.getOrDefault(table, TBL_NO_PERMISSION);
    if (authorizeFamily(tblPermissions.get(user.getShortName()), table, family, action)) {
      return true;
    }
    for (String group : user.getGroupNames()) {
      if (
        authorizeFamily(tblPermissions.get(AuthUtil.toGroupEntry(group)), table, family, action)
      ) {
        return true;
      }
    }
    return false;
  }
Check if user has given action privilige in table:family scope. This method is for backward
compatibility.
@param user   user name
@param table  table name
@param family family names
@param action one of action in [Read, Write, Create, Exec, Admin]
@return true if user has, false otherwise
hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AuthManager.java