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

Update controllers/admin to fix a bug.

parent 36292ac6
......@@ -10,9 +10,9 @@ def index():
# login procedure is active
if session.auth:
roles = session.auth.user_groups.values()
roles = list(session.auth.user_groups.values())
if roles:
if len(roles) > 0:
session.role = roles[0]
# inhibit USER login from the application properties
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