Don't allow clone contest with access code
This commit is contained in:
parent
d9b477c441
commit
e996e9e47f
1 changed files with 2 additions and 0 deletions
|
@ -461,6 +461,8 @@ def is_contest_clonable(request, contest):
|
|||
return False
|
||||
if request.user.has_perm("judge.clone_contest"):
|
||||
return True
|
||||
if contest.access_code and not contest.is_editable_by(request.user):
|
||||
return False
|
||||
if contest.ended:
|
||||
return True
|
||||
return False
|
||||
|
|
Loading…
Reference in a new issue