Fix for hidden users seeing their graphing data (#1845)

* Fix an issue where hidden users couldn't see their graphing data on their private user page (i.e. `/user`)
This commit is contained in:
Kevin Chung
2021-03-23 00:38:55 -04:00
committed by GitHub
parent 0fdb038c6c
commit d0c92073c3
3 changed files with 3 additions and 2 deletions

View File

@@ -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 `<blockquote>` 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

View File

@@ -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 }};
</script>
<script defer src="{{ url_for('views.themes', path='js/echarts.bundle.js') }}"></script>

View File

@@ -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 }};
</script>
<script defer src="{{ url_for('views.themes', path='js/echarts.bundle.js') }}"></script>