We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fcce26 commit a30da1cCopy full SHA for a30da1c
conditional/blueprints/intro_evals_form.py
@@ -6,6 +6,7 @@
6
from conditional.models.models import FreshmanEvalData
7
from conditional.models.models import EvalSettings
8
from conditional.util.ldap import ldap_is_intromember
9
+from conditional.util.ldap import ldap_get_member
10
from conditional.util.flask import render_template
11
12
from conditional import db
@@ -23,8 +24,8 @@ def display_intro_evals_form():
23
24
25
# get user data
26
user_name = request.headers.get('x-webauth-user')
-
27
- if not ldap_is_intromember(user_name):
+ account = ldap_get_member(user_name)
28
+ if not ldap_is_intromember(account):
29
return redirect("/dashboard")
30
eval_data = FreshmanEvalData.query.filter(
31
FreshmanEvalData.uid == user_name).first()
0 commit comments