Commit 623e8a23 authored by HERBERT Ryan's avatar HERBERT Ryan

controllers/ prevent upload with low disk space

parent c42ddcfe
......@@ -25,6 +25,9 @@ def add():
if not auth.can_upload_sample_set(
return error_message("you don't have right to upload files")
enough_space = check_enough_space(def.DIR_SEQUENCES)
if not enough_space:
return error_message("Uploads are temporarily disabled. System admins have been made aware of the situation.")
patient_id = None
run_id = None
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