Fix invalid error when user can not search namespaces

This commit is contained in:
Denis Arh
2021-07-21 22:46:18 +02:00
parent 5a4c4e1f06
commit 7cf6c18d81
+1 -1
View File
@@ -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 {