From d80051bcda88823ad1b910bab23f7733378a7557 Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Sun, 15 Mar 2020 15:33:28 -0400 Subject: [PATCH] Mark 2.3.2 (#1292) 2.3.2 / 2020-03-15 ================== **General** * Fix awards not being properly assigned to teams in `TEAMS_MODE` **API** * Set `/api/v1/statistics/users` route to be admins_only * When POST'ing to `/api/v1/awards`, CTFd will look up a user's team ID if `team_id` is not specified **Admin Panel** * Adds a setting to registration visibility to allow for MLC registration while registration is disabled * Fix setting theme color during the setup flow and from the Admin Panel **Themes** * Fixes users/admins being able to remove profile settings. * Previously a bug prevented users from removing some profile settings. Now the `core` theme stores the initial value of inputs as a `data` attribute and checks for changes when updating data. This should be a temporary hack until a proper front-end framework is in place. * Fix `ezToast()` issue that was keeping toast messages visible indefinitely * Fix `modal-body` parameters in ezq.js for `ezAlert` and `ezQuery` and fix the progress bar for certain cases in `ezProgressBar` * Use `authed()` function to check if user is authed in `base.html`. This fixes an issue where a page could look as if the user was logged in. **Miscellaneous** * Fix behavior for `REVERSE_PROXY` config setting when set to a boolean instead of a string * Improve `Dockerfile` to run fewer commands and re-use the build cache * Add `make coverage` to generate an HTML coverage report * Update `coverage` and `pytest-cov` development dependencies --- CHANGELOG.md | 28 ++++++++++++++++++++++++++++ CTFd/__init__.py | 2 +- docs/conf.py | 2 +- package.json | 2 +- 4 files changed, 31 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 52489754..a5581db5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,31 @@ +2.3.2 / 2020-03-15 +================== + +**General** +* Fix awards not being properly assigned to teams in `TEAMS_MODE` + +**API** +* Set `/api/v1/statistics/users` route to be admins_only +* When POST'ing to `/api/v1/awards`, CTFd will look up a user's team ID if `team_id` is not specified + +**Admin Panel** +* Adds a setting to registration visibility to allow for MLC registration while registration is disabled +* Fix setting theme color during the setup flow and from the Admin Panel + +**Themes** +* Fixes users/admins being able to remove profile settings. + * Previously a bug prevented users from removing some profile settings. Now the `core` theme stores the initial value of inputs as a `data` attribute and checks for changes when updating data. This should be a temporary hack until a proper front-end framework is in place. +* Fix `ezToast()` issue that was keeping toast messages visible indefinitely +* Fix `modal-body` parameters in ezq.js for `ezAlert` and `ezQuery` and fix the progress bar for certain cases in `ezProgressBar` +* Use `authed()` function to check if user is authed in `base.html`. This fixes an issue where a page could look as if the user was logged in. + +**Miscellaneous** +* Fix behavior for `REVERSE_PROXY` config setting when set to a boolean instead of a string +* Improve `Dockerfile` to run fewer commands and re-use the build cache +* Add `make coverage` to generate an HTML coverage report +* Update `coverage` and `pytest-cov` development dependencies + + 2.3.1 / 2020-02-17 ================== diff --git a/CTFd/__init__.py b/CTFd/__init__.py index 55a543f3..a0767223 100644 --- a/CTFd/__init__.py +++ b/CTFd/__init__.py @@ -30,7 +30,7 @@ if sys.version_info[0] < 3: reload(sys) # noqa: F821 sys.setdefaultencoding("utf-8") -__version__ = "2.3.1" +__version__ = "2.3.2" class CTFdRequest(Request): diff --git a/docs/conf.py b/docs/conf.py index 6f647961..c6e0ea53 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -26,7 +26,7 @@ author = u"Kevin Chung" # The short X.Y version version = u"" # The full version, including alpha/beta/rc tags -release = u"2.3.1" +release = u"2.3.2" # -- General configuration --------------------------------------------------- diff --git a/package.json b/package.json index 70c81047..23c639ee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ctfd", - "version": "2.3.1", + "version": "2.3.2", "description": "CTFd is a Capture The Flag framework focusing on ease of use and customizability. It comes with everything you need to run a CTF and it's easy to customize with plugins and themes.", "main": "index.js", "directories": {