diff --git a/judge/models/contest.py b/judge/models/contest.py index 2b33c055a..bd40131f3 100644 --- a/judge/models/contest.py +++ b/judge/models/contest.py @@ -240,7 +240,7 @@ def is_in_contest(self, user): if user.is_authenticated: profile = user.profile return profile and profile.current_contest is not None and profile.current_contest.contest == self \ - and profile.current_contest.contest.can_join + and (profile.current_contest.contest.can_join or profile.current_contest.spectate) return False def can_see_own_scoreboard(self, user):