From 567c3539ad731e8b9065c6fbc03a55f06a9d6e8f Mon Sep 17 00:00:00 2001 From: Maciej Maciejewski Date: Thu, 2 Jan 2025 22:57:45 +0100 Subject: [PATCH] poprawka - autoryzacja w controllerze usera --- Controllers/UserController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Controllers/UserController.cs b/Controllers/UserController.cs index c61879f..42b592b 100644 --- a/Controllers/UserController.cs +++ b/Controllers/UserController.cs @@ -29,7 +29,7 @@ namespace FirmTracker_Server.Controllers { [Route("api/user")] [ApiController] - //[Authorize] + [Authorize] public class UserController : ControllerBase { private readonly IUserService UserService; @@ -40,7 +40,7 @@ namespace FirmTracker_Server.Controllers } [HttpPost("create")] - //[Authorize(Roles = Roles.Admin)] + [Authorize(Roles = Roles.Admin)] public ActionResult CreateUser([FromBody] CreateUserDto dto) { if (!ModelState.IsValid)