PI2024-48 #8

Merged
s464958 merged 6 commits from PI2024-48 into master 2025-01-03 09:20:05 +01:00
Showing only changes of commit 567c3539ad - Show all commits

View File

@ -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)