diff options
author | BonfaceKilz | 2022-05-24 11:44:25 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-05-27 15:17:52 +0300 |
commit | 4be62199da135cc74138db9dcc3191f67892e80c (patch) | |
tree | 2a6672fc93bc9bcc9ff0b9c2f5b96a7a57e21d68 /wqflask | |
parent | 92703faff0f0eaedae9b12c5c5d47cf22236944d (diff) | |
download | genenetwork2-4be62199da135cc74138db9dcc3191f67892e80c.tar.gz |
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.
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/metadata_edits.py | 2 |
1 files changed, 2 insertions, 0 deletions
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: |