Commit f4ed419a authored by Ryan Herbert's avatar Ryan Herbert
Browse files 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(, db[type])
auth.vidjil_accessible_query(PermissionEnum.admin.value, db[type])
db[type].ALL, # sub optimal, use helpers to reduce ?
orderby = ~db[type].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