code: public void checkSelect(Table table, boolean[] checkList) {
  
          if (isFullyAccessibleByRole(table)) {
              return;
          }
  
          Right right = (Right) fullRightsMap.get(table.getName());
  
          if (right != null && right.canSelect(table, checkList)) {
              return;
          }
  
          throw Error.error(ErrorCode.X_42501, table.getName().name);
      }
docs: Checks if a right represented by the methods
  have been granted on the specified database object. <p>
  
  This is done by checking that a mapping exists in the rights map
  from the dbobject argument. Otherwise, it throws.