aboutsummaryrefslogtreecommitdiff
path: root/gn_auth
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-10-10 09:10:12 +0300
committerFrederick Muriuki Muriithi2023-10-10 09:10:12 +0300
commita56becfa079cebc030237d9b6acc3d38756bb7ef (patch)
tree794a7819fc88419f0f123f7cbd05ac98f1db9d70 /gn_auth
parent7d28affb779cc76a258b326fa501562fbae9067e (diff)
downloadgn-auth-a56becfa079cebc030237d9b6acc3d38756bb7ef.tar.gz
Temporarily return no data for resources of types system and group.
Diffstat (limited to 'gn_auth')
-rw-r--r--gn_auth/auth/authorisation/resources/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/resources/models.py b/gn_auth/auth/authorisation/resources/models.py
index f4be978..451b165 100644
--- a/gn_auth/auth/authorisation/resources/models.py
+++ b/gn_auth/auth/authorisation/resources/models.py
@@ -287,7 +287,9 @@ def attach_resources_data(
resource_data_function = {
"mrna": mrna_attach_resources_data,
"genotype": genotype_attach_resources_data,
- "phenotype": phenotype_attach_resources_data
+ "phenotype": phenotype_attach_resources_data,
+ "system": lambda *args: [],
+ "group": lambda *args: []
}
organised = organise_resources_by_category(resources)
with db.cursor(conn) as cursor: