From 4be62199da135cc74138db9dcc3191f67892e80c Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Tue, 24 May 2022 11:44:25 +0300 Subject: Make sure is in editor's group to view the case-attributes * wqflask/wqflask/metadata_edits.py (show_case_attribute_columns): Add "case_attributes_edit_access" and "login_required" decorators. --- wqflask/wqflask/metadata_edits.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wqflask') diff --git a/wqflask/wqflask/metadata_edits.py b/wqflask/wqflask/metadata_edits.py index 202a5d1b..785f76e5 100644 --- a/wqflask/wqflask/metadata_edits.py +++ b/wqflask/wqflask/metadata_edits.py @@ -700,6 +700,8 @@ def approve_data(resource_id: str, file_name: str): @metadata_edit.route("/case-attributes") +@case_attributes_edit_access +@login_required def show_case_attribute_columns(): diff_data = None with database_connection() as conn: -- cgit v1.2.3