about summary refs log tree commit diff
path: root/gn_auth/auth/authorisation/resources/groups/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn_auth/auth/authorisation/resources/groups/views.py')
-rw-r--r--gn_auth/auth/authorisation/resources/groups/views.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gn_auth/auth/authorisation/resources/groups/views.py b/gn_auth/auth/authorisation/resources/groups/views.py
index f146ffd..ba34040 100644
--- a/gn_auth/auth/authorisation/resources/groups/views.py
+++ b/gn_auth/auth/authorisation/resources/groups/views.py
@@ -233,6 +233,9 @@ def unlinked_phenotype_data(
 @require_oauth("profile group resource")
 def unlinked_data(resource_type: str) -> Response:
     """View data linked to the group but not linked to any resource."""
+    if resource_type in ("system", "group"):
+        return jsonify(tuple())
+
     if resource_type not in ("all", "mrna", "genotype", "phenotype"):
         raise AuthorisationError(f"Invalid resource type {resource_type}")