mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 14:34:21 +01:00
Adding file handler
This commit is contained in:
@@ -24,7 +24,10 @@ def challenges_view():
|
||||
if view_after_ctf(): # But we are allowed to view after the CTF ends
|
||||
pass
|
||||
else: # We are NOT allowed to view after the CTF ends
|
||||
errors.append('{} has ended'.format(ctf_name()))
|
||||
if get_config('start') and not ctf_started():
|
||||
errors.append('{} has not started yet'.format(ctf_name()))
|
||||
if (get_config('end') and ctf_ended()) and not view_after_ctf():
|
||||
errors.append('{} has ended'.format(ctf_name()))
|
||||
return render_template('chals.html', errors=errors, start=int(start), end=int(end))
|
||||
if get_config('verify_emails') and not is_verified(): # User is not confirmed
|
||||
return redirect(url_for('auth.confirm_user'))
|
||||
|
||||
Reference in New Issue
Block a user