diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a91c574..4c4df847 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ - Allow for the automatic date rendering format to be overridden by specifying a `data-time-format` attribute. - Add styling for the `
` element. - Change `colorHash` function to use HSL color values to avoid generating too light/dark colors +- Fix an issue where hidden users couldn't see their graphing data on their private user page (`/user`) - Fix scoreboard table identifier to switch between User/Team depending on configured user mode - Switch the challenges page in core to use the new API information in `/api/v1/challenges` to mark solves and display solve counts - Switch to using Bootstrap's scss in `core/main.scss` to allow using Bootstrap variables diff --git a/CTFd/themes/core/templates/users/private.html b/CTFd/themes/core/templates/users/private.html index d9944f58..62d8c4af 100644 --- a/CTFd/themes/core/templates/users/private.html +++ b/CTFd/themes/core/templates/users/private.html @@ -166,7 +166,7 @@ 'type': 'user', 'id': user.id, 'name': user.name, - 'account_id': 'me' if user.id == id else user.id, + 'account_id': 'me' if user.id == Session.id else user.id, } | tojson }}; diff --git a/CTFd/themes/core/templates/users/public.html b/CTFd/themes/core/templates/users/public.html index a47c166c..d4d77197 100644 --- a/CTFd/themes/core/templates/users/public.html +++ b/CTFd/themes/core/templates/users/public.html @@ -166,7 +166,7 @@ 'type': 'user', 'id': user.id, 'name': user.name, - 'account_id': 'me' if user.id == id else user.id, + 'account_id': 'me' if user.id == Session.id else user.id, } | tojson }};