From f095729cb63d37bed91835609a4fa21b0397579e Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Thu, 28 Apr 2022 00:15:58 -0500 Subject: [PATCH] Fix view editorial in contest mode --- templates/problem/problem.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/problem/problem.html b/templates/problem/problem.html index 30e3716..64e4b3d 100644 --- a/templates/problem/problem.html +++ b/templates/problem/problem.html @@ -194,7 +194,7 @@
{{ _('All submissions') }}
{{ _('Best submissions') }}
{% 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) %}
{{ _('Read editorial') }}
{% endif %}