Commit f4ed419a authored by Ryan Herbert's avatar Ryan Herbert

sample_set.py get_sample_set_list limit to admin permission

This function is used to autocomplete the list of sample_sets when
uploading samples. And we don't want to autocomplete sets that the user
cannot upload to.

See #2735
parent fa9c90df
......@@ -581,7 +581,7 @@ def change_permission():
def get_sample_set_list(type):
query = db(
auth.vidjil_accessible_query(PermissionEnum.read.value, db[type])
auth.vidjil_accessible_query(PermissionEnum.admin.value, db[type])
).select(
db[type].ALL, # sub optimal, use helpers to reduce ?
orderby = ~db[type].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