Commit 11c086b3 authored by HERBERT Ryan's avatar HERBERT Ryan Committed by Mathieu Giraud
Browse files

results_file.py fixed access to results log

Resolved an issue where the permissions for viewing results logs were
checked on the wrong sample set
parent 63efc5b2
......@@ -79,6 +79,8 @@ def info():
sample_set_id = db((db.sequence_file.id == db.results_file.sequence_file_id)
&(db.results_file.id == request.vars["results_file_id"])
&(db.sample_set_membership.sequence_file_id == db.sequence_file.id)
&(db.sample_set.id == db.sample_set_membership.sample_set_id)
&(db.sample_set.sample_type != 'sequence_file')
).select(db.sample_set_membership.sample_set_id).first().sample_set_id
if (auth.can_modify_sample_set(sample_set_id)):
return dict(message=T('result info'))
......
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