Commit beea6e70 authored by HERBERT Ryan's avatar HERBERT Ryan
Browse files

config.py, file.py vidjil_accessible_query

Applying some vidjil_accessible_query where the regular accessible_query
was still used
parent 797f3a51
......@@ -15,7 +15,7 @@ def index():
return gluon.contrib.simplejson.dumps(res, separators=(',',':'))
query = db((auth.accessible_query('read', db.config) | auth.accessible_query('admin', db.config) ) ).select(orderby=~db.config.name)
query = db((auth.vidjil_accessible_query('read', db.config) | auth.vidjil_accessible_query('admin', db.config) ) ).select(orderby=~db.config.name)
return dict(message=T('Configs'),
query=query,
......
......@@ -48,7 +48,7 @@ def add():
))
query_patient = db(
auth.accessible_query('admin', db.patient)
auth.vidjil_accessible_query('admin', db.patient)
).select(
db.patient.ALL,
orderby = ~db.patient.id
......@@ -65,7 +65,7 @@ def add():
patient = birth+name+id
query_run = db(
auth.accessible_query('admin', db.run)
auth.vidjil_accessible_query('admin', db.run)
).select(
db.run.ALL,
orderby = ~db.run.id
......
Supports Markdown
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