Fix #9, do not reuse the flask_login object for updates, query instead

master
Pierre Jaury 9 years ago
parent 4e8a332802
commit 7f7ff4d722

@ -20,8 +20,7 @@ def require_global_admin():
def get_user(user_email, admin=False):
if user_email is None:
user = flask_login.current_user
else:
user_email = flask_login.current_user.email
user = models.User.query.get(user_email)
if not user:
flask.abort(404)

Loading…
Cancel
Save