summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/views.py')
-rw-r--r--ogcp/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index 66e9007..d1e4109 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -210,7 +210,7 @@ def load_user(username):
if not user_dict:
return None
- user = User(username, user_dict.get('SCOPES'))
+ user = User(username, user_dict.get('SCOPES'), user_dict.get('ADMIN'))
return user
@app.before_request
@@ -265,7 +265,7 @@ def login():
user_dict = authenticate_user(form_user, pwd)
if not user_dict:
return render_template('auth/login.html', form=form)
- user = User(form_user, user_dict.get('SCOPES'))
+ user = User(form_user, user_dict.get('SCOPES'), user_dict.get('ADMIN'))
login_user(user)
return redirect(url_for('index'))
return render_template('auth/login.html', form=LoginForm())