Commit f04b9675 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Add the logic to inhibit user login via the application properties

parent a7a499a1
......@@ -12,6 +12,12 @@ def index():
if roles:
session.role = roles[0]
# inhibit USER login from the application properties
if session.role == USER:
authorize_login = current.app.authorize_user_login
if authorize_login.lower() not in ('true', 'yes'):
session.role = None
else:
return 'The user role is not defined'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment