diff options
author | Frederick Muriuki Muriithi | 2023-09-27 09:46:58 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-09-27 09:46:58 +0300 |
commit | 78eb3fd12e31d22b53c9cdf5b7b0299befd86be3 (patch) | |
tree | 0b92ac9e6a68a2daff8c8b699763bdae432b331e /gn_auth/auth/authorisation/resources/models.py | |
parent | 5d3dffd703822b019f39e7b898758085b88b4809 (diff) | |
download | gn-auth-78eb3fd12e31d22b53c9cdf5b7b0299befd86be3.tar.gz |
Bug: Fix issue with viewing resources of type "group".
Diffstat (limited to 'gn_auth/auth/authorisation/resources/models.py')
-rw-r--r-- | gn_auth/auth/authorisation/resources/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/resources/models.py b/gn_auth/auth/authorisation/resources/models.py index a16ca16..bca2ff9 100644 --- a/gn_auth/auth/authorisation/resources/models.py +++ b/gn_auth/auth/authorisation/resources/models.py @@ -182,7 +182,8 @@ def resource_data(conn, resource, offset: int = 0, limit: Optional[int] = None) "mrna": mrna_resource_data, "genotype": genotype_resource_data, "phenotype": phenotype_resource_data, - "system": lambda *args: tuple() + "system": lambda *args: tuple(), + "group": lambda *args: tuple() } with db.cursor(conn) as cursor: return tuple( |