From 167afb6a735f017dd5d999e78c5f5d2553a36377 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Tue, 1 Dec 2020 17:23:23 -0600 Subject: [PATCH] Allow superuser to abort --- judge/views/submission.py | 1 - 1 file changed, 1 deletion(-) diff --git a/judge/views/submission.py b/judge/views/submission.py index 9dac6e7..5793ef1 100644 --- a/judge/views/submission.py +++ b/judge/views/submission.py @@ -237,7 +237,6 @@ def abort_submission(request, submission): # not request.user.has_perm('abort_any_submission')): # raise PermissionDenied() if (not request.user.is_authenticated - or submission.was_rejudged or not request.user.has_perm('abort_any_submission')): raise PermissionDenied() submission.abort()