Allow superuser to abort
This commit is contained in:
parent
1004563a53
commit
167afb6a73
1 changed files with 0 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue