From 7953c1b2ae000a0413424fb74bad63a9e93f974d Mon Sep 17 00:00:00 2001 From: Jonathan Wu Date: Fri, 15 Dec 2023 13:55:39 -0500 Subject: [PATCH] Bump version --- docs/SECURITY.md | 5 +++-- src/templates/admin/console.html | 10 +++++----- src/views/admin.py | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/docs/SECURITY.md b/docs/SECURITY.md index 7423772..553ac1f 100644 --- a/docs/SECURITY.md +++ b/docs/SECURITY.md @@ -7,8 +7,9 @@ Please refer to the chart below for versions with security support | Version | Supported | | ----------- | ------------------ | | Prereleases | :x: | -| >= 4.1.0 | :white_check_mark: | -| < 4.1.0 | :x: | +| Betas | :x: | +| >= 4.2.0 | :white_check_mark: | +| < 4.2.0 | :x: | As you can tell, it is strongly recommended to always be on the latest stable major release. When security issues are uncovered, we will do our best to promptly release a patched version. diff --git a/src/templates/admin/console.html b/src/templates/admin/console.html index 47c6b8d..4eb2464 100644 --- a/src/templates/admin/console.html +++ b/src/templates/admin/console.html @@ -76,11 +76,11 @@
Manage Homepage
{% if check_perm(["ADMIN", "SUPERADMIN"]) %}

- The only thing maintenance mode should be used for is to make significant changes to the - database that requires nobody writes to it during that time, as well as 5 minutes before a - reboot to let users know that the site will be down momentarily. If the application is rebooted, - maintenance mode will remain on. To disable it, log in as an admin account and navigate back to - this page or remove the 'maintenance_mode' file on the server. + Maintenance mode prevents non-admin users from interacting with the site. Admins can still log + in and perform changes as required. Use this for site upgrades and for other situations as + needed. If CTFOJ or its server is rebooted, maintenance mode will remain on. To disable it, + log in as an admin account and navigate back to this page or remove the 'maintenance_mode' file + on the server.

{% if maintenance_mode %} diff --git a/src/views/admin.py b/src/views/admin.py index d2cccc5..d50467d 100644 --- a/src/views/admin.py +++ b/src/views/admin.py @@ -15,7 +15,7 @@ @api.route("/console") @perm_required(["ADMIN", "SUPERADMIN", "PROBLEM_MANAGER", "CONTENT_MANAGER"]) def admin_console(): - return render_template("admin/console.html", ver="v4.1.1", + return render_template("admin/console.html", ver="v4.2.0", maintenance_mode=os.path.exists('maintenance_mode'))