code: protected void addWebuserCondition(CmsSelectQuery select, CmsOrganizationalUnit orgUnit, TableAlias users) {
  
          String webuserConditionTemplate;
          if (orgUnit.hasFlagWebuser()) {
              webuserConditionTemplate = "( %1$s >= 32768 AND %1$s < 65536 )";
          } else {
              webuserConditionTemplate = "( %1$s < 32768 OR %1$s >= 65536 )";
          }
          String webuserCondition = String.format(webuserConditionTemplate, users.column(colFlags()));
          select.addCondition(webuserCondition);
      }
docs: Adds a check for the web user condition to an SQL query.<p>
  
  @param select the query
  @param orgUnit the organizational unit
  @param users the user table alias