From 7cf6c18d8141a5c5ff1d502228b2779f07e6947e Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Wed, 21 Jul 2021 22:46:18 +0200 Subject: [PATCH] Fix invalid error when user can not search namespaces --- compose/service/namespace.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose/service/namespace.go b/compose/service/namespace.go index 6e9b0118e..f61fb53bb 100644 --- a/compose/service/namespace.go +++ b/compose/service/namespace.go @@ -81,7 +81,7 @@ func (svc namespace) Find(ctx context.Context, filter types.NamespaceFilter) (se err = func() error { if !svc.ac.CanSearchNamespaces(ctx) { - return ChartErrNotAllowedToRead() + return NamespaceErrNotAllowedToSearch() } if len(filter.Labels) > 0 {