Commit 380ead13 authored by Ryan Herbert's avatar Ryan Herbert
Browse files fix fuplicate file check

The query designed to allow the controller to check whether a file
already exists within the set(s) to which it is being uploaded was
checking against patients in all cases leading to some odd behaviour.

See #2855
parent 7f1e4dbc
Pipeline #11100 passed with stages
in 5 minutes and 4 seconds
......@@ -155,7 +155,7 @@ def add_form():
error += " missing permission for %s %d" % (key, set_id)
query = db((db[key].id == set_id)
&(db.sample_set_membership.sample_set_id == db.patient.sample_set_id)
&(db.sample_set_membership.sample_set_id == db[key].sample_set_id)
&( == db.sample_set_membership.sequence_file_id)
for row in query :
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