From 60e25041be811e3672dfe43412dbf2147494f958 Mon Sep 17 00:00:00 2001 From: Nypifok <53980718+Nypifok@users.noreply.github.com> Date: Fri, 11 Dec 2020 07:39:44 +0300 Subject: [PATCH] #28 ControllerAuthorizationFix --- ImageBase.WebApp/Controllers/ImagesController.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ImageBase.WebApp/Controllers/ImagesController.cs b/ImageBase.WebApp/Controllers/ImagesController.cs index 354c5f0..119f772 100644 --- a/ImageBase.WebApp/Controllers/ImagesController.cs +++ b/ImageBase.WebApp/Controllers/ImagesController.cs @@ -56,9 +56,8 @@ private async Task CurrentUser() return null; } } - [AllowAnonymous] [HttpGet("[action]")] - public async Task> Search([FromBody] FullTextSeacrhDto fullTextSeacrhDto) + public async Task> Search(FullTextSeacrhDto fullTextSeacrhDto) { ServiceResponse> serviceSearch = await _imagesService.FullTextSearchByImagesAsync(fullTextSeacrhDto); if (serviceSearch.Success == false)