forked from 42CTF/website
removed start challenge button when event is over
This commit is contained in:
parent
901c73a4f2
commit
5eec76dd00
|
@ -65,7 +65,7 @@ def chall_event_info(request, event_slug, chall_slug):
|
|||
return redirect('events:event_info', event_slug=event_slug)
|
||||
elif not request.user.is_authenticated:
|
||||
return redirect('accounts:signin')
|
||||
if request.GET.get('EventIsOver'):
|
||||
if request.GET.get('EventIsOver') or timezone.now() > event_info.end_date:
|
||||
eventisover = True
|
||||
if request.GET.get('AlreadyFlagged'):
|
||||
alreadyflag = True
|
||||
|
|
Loading…
Reference in New Issue