From c4c4a163eda198b022e557c99b591397dd29269f Mon Sep 17 00:00:00 2001 From: Phil Weir Date: Thu, 17 Oct 2024 09:28:01 +0200 Subject: [PATCH] fix(perms): search should use models.read_nodegroup as permission --- arches/app/search/components/resource_type_filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arches/app/search/components/resource_type_filter.py b/arches/app/search/components/resource_type_filter.py index 50735a5591c..8cd62deadfc 100644 --- a/arches/app/search/components/resource_type_filter.py +++ b/arches/app/search/components/resource_type_filter.py @@ -19,7 +19,7 @@ def get_permitted_graphids(user, permitted_nodegroups): - return get_resource_types_by_perm(user, "read_nodegroup") + return get_resource_types_by_perm(user, ["models.read_nodegroup"]) class ResourceTypeFilter(BaseSearchFilter):