diff options
author | Frederick Muriuki Muriithi | 2023-10-10 09:10:12 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-10-10 09:10:12 +0300 |
commit | a56becfa079cebc030237d9b6acc3d38756bb7ef (patch) | |
tree | 794a7819fc88419f0f123f7cbd05ac98f1db9d70 /gn_auth | |
parent | 7d28affb779cc76a258b326fa501562fbae9067e (diff) | |
download | gn-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.py | 4 |
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: |