admin.py 376 Bytes
Newer Older
1 2 3 4
""" Main Controller to run the application with the admin privileges.

"""

5
@auth.requires_login()
6
def index():
7

8 9 10 11 12 13 14
    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 !!!!' 

15
    return LOAD('plugin_dbui', 'index', vars=request.vars)