Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
jdabtieu committed Dec 15, 2023
1 parent ad9b8ce commit 7953c1b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions docs/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 5 additions & 5 deletions src/templates/admin/console.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ <h5 class="card-title">Manage Homepage</h5>
{% if check_perm(["ADMIN", "SUPERADMIN"]) %}
<hr>
<p>
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.
</p>
<form action="/admin/maintenance" method="POST">
{% if maintenance_mode %}
Expand Down
2 changes: 1 addition & 1 deletion src/views/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))


Expand Down

0 comments on commit 7953c1b

Please sign in to comment.