Commit aea761b7 authored by Marc Duez's avatar Marc Duez

server : debug var name

parent bb4faa7b
......@@ -199,7 +199,7 @@ def permission():
#
def remove_permission():
if (auth.has_permission('admin', 'patient', request.vars["id"]) ):
if (auth.has_permission('admin', 'patient', request.vars["patient_id"]) ):
error = ""
if request.vars["group_id"] == "" :
error += "missing group_id, "
......@@ -220,7 +220,7 @@ def remove_permission():
#
def change_permission():
if (auth.has_permission('admin', 'patient', request.vars["id"]) ):
if (auth.has_permission('admin', 'patient', request.vars["patient_id"]) ):
auth.add_permission(request.vars["group_id"], request.vars["permission"], db.patient, request.vars["patient_id"])
res = {"redirect" : "patient/permission" , "args" : { "id" : request.vars["patient_id"]} }
......
......@@ -160,7 +160,7 @@ if db(db.auth_user.id > 0).count() == 0:
## création des groupes de base
id_admin_group=db.auth_group.insert(role='admin')
id_sa_group=db.auth_group.insert(role='user_1')
db.auth_group.insert(role="visitor")
db.auth_group.insert(role="public")
db.auth_membership.insert(user_id=id_first_user, group_id=id_admin_group)
db.auth_membership.insert(user_id=id_first_user, group_id=id_sa_group)
......
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