From 2b54d46311e7dca76575a5f6e4ce3267f7eee8bd Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 29 Jan 2021 09:30:21 +0200 Subject: Fixed GetUser (by username) authorization --- src/DevHive.Web/Controllers/UserController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DevHive.Web/Controllers/UserController.cs b/src/DevHive.Web/Controllers/UserController.cs index f9fb083..332868d 100644 --- a/src/DevHive.Web/Controllers/UserController.cs +++ b/src/DevHive.Web/Controllers/UserController.cs @@ -67,6 +67,7 @@ namespace DevHive.Web.Controllers [HttpGet] [Route("GetUser")] + [AllowAnonymous] public async Task GetUser(string username) { UserServiceModel friendServiceModel = await this._userService.GetUserByUsername(username); -- cgit v1.2.3