Allow superuser to abort

This commit is contained in:
cuom1999 2020-12-01 17:23:23 -06:00
parent 1004563a53
commit 167afb6a73

View file

@ -237,7 +237,6 @@ def abort_submission(request, submission):
# not request.user.has_perm('abort_any_submission')): # not request.user.has_perm('abort_any_submission')):
# raise PermissionDenied() # raise PermissionDenied()
if (not request.user.is_authenticated if (not request.user.is_authenticated
or submission.was_rejudged
or not request.user.has_perm('abort_any_submission')): or not request.user.has_perm('abort_any_submission')):
raise PermissionDenied() raise PermissionDenied()
submission.abort() submission.abort()