Skip to content

Commit

Permalink
Don't need edit perm to view balloon
Browse files Browse the repository at this point in the history
  • Loading branch information
leduythuccs committed Oct 18, 2024
1 parent 4a00b14 commit 74be67b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion judge/views/contests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 74be67b

Please sign in to comment.