diff --git a/DamageAssesmentApi/DamageAssesment.Api.UsersAccess/Controllers/UsersAccessController.cs b/DamageAssesmentApi/DamageAssesment.Api.UsersAccess/Controllers/UsersAccessController.cs index 1c92342..c17ec40 100644 --- a/DamageAssesmentApi/DamageAssesment.Api.UsersAccess/Controllers/UsersAccessController.cs +++ b/DamageAssesmentApi/DamageAssesment.Api.UsersAccess/Controllers/UsersAccessController.cs @@ -48,7 +48,7 @@ namespace DamageAssesment.Api.UsersAccess.Controllers return Unauthorized(result.ErrorMessage); } - [Authorize(Policy = "DamageApp", Roles ="admin")] + // [Authorize(Policy = "DamageApp", Roles ="admin")] [HttpGet("users")] public async Task GetUsersAsync() { @@ -60,7 +60,7 @@ namespace DamageAssesment.Api.UsersAccess.Controllers return NoContent(); } - [Authorize(Policy = "DamageApp", Roles = "admin")] + // [Authorize(Policy = "DamageApp", Roles = "admin")] [HttpGet("users/{Id}")] public async Task GetUsersAsync(int Id) { @@ -72,7 +72,7 @@ namespace DamageAssesment.Api.UsersAccess.Controllers return NotFound(); } - [Authorize(Policy = "DamageApp", Roles = "admin")] + // [Authorize(Policy = "DamageApp", Roles = "admin")] [HttpGet("roles")] public async Task GetRolesAsync() { @@ -83,7 +83,7 @@ namespace DamageAssesment.Api.UsersAccess.Controllers } return NoContent(); } - [Authorize(Policy = "DamageApp", Roles = "admin")] + // [Authorize(Policy = "DamageApp", Roles = "admin")] [HttpPost("users")] public async Task PostUserAsync(User user) { @@ -95,7 +95,7 @@ namespace DamageAssesment.Api.UsersAccess.Controllers return BadRequest(result.ErrorMessage); } - [Authorize(Policy = "DamageApp", Roles = "admin")] + // [Authorize(Policy = "DamageApp", Roles = "admin")] [HttpPut("users/{Id}")] public async Task PutUserAsync(int Id, User user) { @@ -110,7 +110,7 @@ namespace DamageAssesment.Api.UsersAccess.Controllers return BadRequest(result.ErrorMessage); } - [Authorize(Policy = "DamageApp", Roles = "admin")] + // [Authorize(Policy = "DamageApp", Roles = "admin")] [HttpDelete("users/{Id}")] public async Task DeleteUserAsync(int Id) {