Skip to content

Commit

Permalink
fix: Fix contest reference in permission check for unhold action
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoleoncio committed Nov 19, 2024
1 parent d3fc778 commit 2bddcd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contests/handlers/triage.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def do_evaluate(self, request):
return {'action': 'release'}

elif request.POST.get('unhold'):
if Evaluator.objects.get(contest=contest, profile=self.user.profile).user_status != 'G':
if Evaluator.objects.get(contest=self.contest, profile=self.user.profile).user_status != 'G':
raise PermissionError('User is not a group member')
else:
if self.unhold_edit():
Expand Down

0 comments on commit 2bddcd9

Please sign in to comment.