Skip to content

Commit 27b7ddb

Browse files
clean up site settings WAR
1 parent 8d15d1c commit 27b7ddb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

conditional/util/flask.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ def render_template(request, template_name, **kwargs):
1313
user_name = request.headers.get('x-webauth-user')
1414

1515
# TODO maybe use the webauth request decorator
16-
lockdown_query = EvalSettings.query.first()
17-
if lockdown_query:
18-
lockdown = lockdown_query.site_lockdown
19-
else:
20-
lockdown = False
16+
lockdown = EvalSettings.query.first().site_lockdown
2117
is_active = ldap_is_active(user_name)
2218
is_alumni = ldap_is_alumni(user_name)
2319
is_eboard = ldap_is_eboard(user_name)

0 commit comments

Comments
 (0)