mirror of https://github.com/JohnHammond/CTFd.git
Remove static_html template code (#596)
parent
0022b6978a
commit
c0e418d900
|
@ -115,10 +115,7 @@ def custom_css():
|
||||||
def static_html(template):
|
def static_html(template):
|
||||||
page = utils.get_page(template)
|
page = utils.get_page(template)
|
||||||
if page is None:
|
if page is None:
|
||||||
try:
|
abort(404)
|
||||||
return render_template('%s.html' % template)
|
|
||||||
except TemplateNotFound:
|
|
||||||
abort(404)
|
|
||||||
else:
|
else:
|
||||||
if page.auth_required and utils.authed() is False:
|
if page.auth_required and utils.authed() is False:
|
||||||
return redirect(url_for('auth.login', next=request.path))
|
return redirect(url_for('auth.login', next=request.path))
|
||||||
|
|
Loading…
Reference in New Issue