no_views_logged_in = async (req, res) => {
  const role = req.user && req.user.id ? req.user.role_id : 100;
  if (role > 1 || req.user.tenant !== db.getTenantSchema())
    res.sendWrap(req.__("Hello"), req.__("Welcome to Saltcorn!"));
  else {
    const isRoot = db.getTenantSchema() === db.connectObj.default_schema;
    const latest =
      isRoot && (await get_latest_npm_version("@saltcorn/cli", 500));
    const can_update =
      latest &&
      semver.gt(latest, packagejson.version) &&
      !process.env.SALTCORN_DISABLE_UPGRADE;
    if (latest && can_update && isRoot)
      req.flash(
        "warning",
        req.__(
          "An upgrade to Saltcorn is available! Current version: %s; latest version: %s.",
          packagejson.version,
          latest
        ) +
          " " +
          a({ href: "/admin/system" }, req.__("Upgrade here"))
      );

    res.sendWrap(req.__("Hello"), await welcome_page(req));
  }
}
No Views logged in
@param {object} req
@param {object} res
@returns {Promise<void>}