From 500582020be8eeac5278032f8b980bfd9d9d3afe Mon Sep 17 00:00:00 2001 From: Santhosh S <913341@dadeschools.net> Date: Wed, 22 Nov 2023 18:34:38 -0500 Subject: [PATCH] disabled auth for user access --- .../Controllers/UsersAccessController.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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) {