Commit ca9846bd authored by Ryan Herbert's avatar Ryan Herbert Committed by Mikaël Salson

single query permissions

use auth.vidjil_accessible_query to include permissions
parent b098e05d
......@@ -42,7 +42,8 @@ class SampleSetList():
groupby = [s_table.id, s_table.sample_set_id, s_table.name, s_table.info, db.auth_user.last_name],
self.result = db(
(s_table.sample_set_id > 0) &
(auth.vidjil_accessible_query('read', db.sample_set)) &
(s_table.sample_set_id == db.sample_set.id) &
(s_table.creator == db.auth_user.id)
).select(
s_table.id.with_alias('id'),
......
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