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

Restore the correct version of the controllers admin.

parent 902d0340
......@@ -2,14 +2,14 @@
"""
#@auth.requires_login()
@auth.requires_login()
def index():
# if db.auth_user[auth.user_id]:
# id_group = db.auth_membership(user_id=auth.user_id).group_id
# session.role = db.auth_group(id=id_group).role
#
# else:
# return 'No users !!!!'
session.role = 'admin'
if db.auth_user[auth.user_id]:
id_group = db.auth_membership(user_id=auth.user_id).group_id
session.role = db.auth_group(id=id_group).role
else:
return 'No users !!!!'
return LOAD('plugin_dbui', 'index', vars=request.vars)
......@@ -395,6 +395,7 @@
'Validate': 'Valider',
'value already in database or empty': 'value already in database or empty',
'value not allowed': 'value not allowed',
'value not in database': 'value not in database',
'Verify Password': 'Verify Password',
'versions': 'versions',
'Volume': 'Volume',
......
../doc/database.png
\ No newline at end of file
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