From 74be67b269585ee515c7c9a5e7fc544287ceed7e Mon Sep 17 00:00:00 2001 From: Le Duy Thuc Date: Fri, 8 Dec 2023 00:34:53 +0000 Subject: [PATCH] Don't need edit perm to view balloon --- judge/views/contests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judge/views/contests.py b/judge/views/contests.py index 163a0f4ef..7e0eefe1c 100644 --- a/judge/views/contests.py +++ b/judge/views/contests.py @@ -1191,7 +1191,7 @@ def get_context_data(self, **kwargs): def dispatch(self, request, *args, **kwargs): self.object = self.get_object() - if self.can_edit: + if request.user.has_perm('judge.contest_rating'): return super().dispatch(request, *args, **kwargs) else: return HttpResponseForbidden()