aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2022-05-24 12:48:03 +0300
committerBonfaceKilz2022-05-27 15:17:52 +0300
commitcdd46d6134b73ba729878c07c6f7a82a724a9be8 (patch)
treeaa8c09253d15d0d4059c035a169d5fce41ce9387 /wqflask
parent656bbc68768b7032b205862bcaa081f6d813223d (diff)
downloadgenenetwork2-cdd46d6134b73ba729878c07c6f7a82a724a9be8.tar.gz
Make sure the user is logged in when approving data
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/metadata_edits.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/wqflask/wqflask/metadata_edits.py b/wqflask/wqflask/metadata_edits.py
index 8b3fd861..74f1cd15 100644
--- a/wqflask/wqflask/metadata_edits.py
+++ b/wqflask/wqflask/metadata_edits.py
@@ -810,6 +810,7 @@ def reject_case_attribute_data():
@metadata_edit.route("/case-attributes/approve", methods=["POST", ])
@case_attributes_edit_access
+@login_required
def approve_case_attribute_data():
case_attr_id = request.form.to_dict().get("id")
with database_connection() as conn: