Fix view editorial in contest mode

This commit is contained in:
cuom1999 2022-04-28 00:15:58 -05:00
parent 01c19b172a
commit f095729cb6

View file

@ -194,7 +194,7 @@
<div><a href="{{ url('chronological_submissions', problem.code) }}">{{ _('All submissions') }}</a></div>
<div><a href="{{ url('ranked_submissions', problem.code) }}">{{ _('Best submissions') }}</a></div>
{% if editorial and editorial.is_public and
not (request.user.is_authenticated and request.profile.current_contest) %}
not (request.user.is_authenticated and request.in_contest_mode) %}
<hr>
<div><a href="{{ url('problem_editorial', problem.code) }}">{{ _('Read editorial') }}</a></div>
{% endif %}