Skip to content

Commit a30da1c

Browse files
mbillowliam-middlebrook
authored andcommitted
[BUG] Intro Evals Form LDAP Fix
1 parent 9fcce26 commit a30da1c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

conditional/blueprints/intro_evals_form.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from conditional.models.models import FreshmanEvalData
77
from conditional.models.models import EvalSettings
88
from conditional.util.ldap import ldap_is_intromember
9+
from conditional.util.ldap import ldap_get_member
910
from conditional.util.flask import render_template
1011

1112
from conditional import db
@@ -23,8 +24,8 @@ def display_intro_evals_form():
2324

2425
# get user data
2526
user_name = request.headers.get('x-webauth-user')
26-
27-
if not ldap_is_intromember(user_name):
27+
account = ldap_get_member(user_name)
28+
if not ldap_is_intromember(account):
2829
return redirect("/dashboard")
2930
eval_data = FreshmanEvalData.query.filter(
3031
FreshmanEvalData.uid == user_name).first()

0 commit comments

Comments
 (0)