From baca4d4b8c655be9e59be8c81fe6c8a682dc6125 Mon Sep 17 00:00:00 2001 From: bastien Date: Fri, 15 Dec 2023 16:00:07 +0100 Subject: [PATCH] Fix #201 - authorize empty search --- src/Resources/config/routing/shop.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/config/routing/shop.yaml b/src/Resources/config/routing/shop.yaml index e0eaf4bb..11a0d06b 100644 --- a/src/Resources/config/routing/shop.yaml +++ b/src/Resources/config/routing/shop.yaml @@ -4,7 +4,7 @@ monsieurbiz_search_search: defaults: _controller: MonsieurBiz\SyliusSearchPlugin\Controller\SearchController::searchAction requirements: - query: .+ + query: .* condition: "not(context.getPathInfo() matches '`^%sylius.security.new_api_route%`') and context.checkElasticsearch()" monsieurbiz_search_post: