Commit 81bf70a4 authored by HERBERT Ryan's avatar HERBERT Ryan
Browse files

Replacing more accessible_query with vidjil_accessible_query

parent 22fd5818
...@@ -13,7 +13,7 @@ def index(): ...@@ -13,7 +13,7 @@ def index():
res = {"redirect" : "default/user/login"} res = {"redirect" : "default/user/login"}
return gluon.contrib.simplejson.dumps(res, separators=(',',':')) return gluon.contrib.simplejson.dumps(res, separators=(',',':'))
query = db((auth.accessible_query('read', db.pre_process) | auth.accessible_query('admin', db.pre_process) ) ).select(orderby=~db.pre_process.name) query = db((auth.vidjil_accessible_query('read', db.pre_process) | auth.vidjil_accessible_query('admin', db.pre_process) ) ).select(orderby=~db.pre_process.name)
return dict(message=T('Pre-process list'), return dict(message=T('Pre-process list'),
query=query, query=query,
......
...@@ -85,7 +85,7 @@ def index(): ...@@ -85,7 +85,7 @@ def index():
query3 = db( query3 = db(
(db.run.sample_set_id == db.fused_file.sample_set_id) & (db.run.sample_set_id == db.fused_file.sample_set_id) &
(db.fused_file.config_id == db.config.id) & (db.fused_file.config_id == db.config.id) &
(auth.accessible_query('read', db.config) | auth.accessible_query('admin', db.config) ) (auth.vidjil_accessible_query('read', db.config) | auth.vidjil_accessible_query('admin', db.config) )
).select( ).select(
db.run.id, db.config.name, db.config.id, db.fused_file.fused_file db.run.id, db.config.name, db.config.id, db.fused_file.fused_file
) )
......
...@@ -204,7 +204,7 @@ def custom(): ...@@ -204,7 +204,7 @@ def custom():
myGroupBy = None myGroupBy = None
if request.vars["id"] and auth.can_view_sample_set(request.vars["id"]): if request.vars["id"] and auth.can_view_sample_set(request.vars["id"]):
q = ((auth.accessible_query('read', db.config)) q = ((auth.vidjil_accessible_query('read', db.config))
& (db.sample_set.id == request.vars["id"]) & (db.sample_set.id == request.vars["id"])
& (db.sample_set.id == db.patient.sample_set_id) & (db.sample_set.id == db.patient.sample_set_id)
& (db.sample_set_membership.sample_set_id == db.sample_set.id) & (db.sample_set_membership.sample_set_id == db.sample_set.id)
...@@ -215,8 +215,8 @@ def custom(): ...@@ -215,8 +215,8 @@ def custom():
) )
else: else:
q = ((auth.accessible_query('read', db.patient)) q = ((auth.vidjil_accessible_query('read', db.patient))
& (auth.accessible_query('read', db.config)) & (auth.vidjil_accessible_query('read', db.config))
& (db.sample_set.id == db.patient.sample_set_id) & (db.sample_set.id == db.patient.sample_set_id)
& (db.sample_set_membership.sample_set_id == db.sample_set.id) & (db.sample_set_membership.sample_set_id == db.sample_set.id)
& (db.sequence_file.id == db.sample_set_membership.sequence_file_id) & (db.sequence_file.id == db.sample_set_membership.sequence_file_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