From 4131223667687ad727425adc04aea6997a58d49c Mon Sep 17 00:00:00 2001 From: vidufour1 Date: Sun, 17 Mar 2024 10:52:46 +0100 Subject: [PATCH] modif authorize --- API/Controllers/TeamsController.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/API/Controllers/TeamsController.cs b/API/Controllers/TeamsController.cs index 66de2b6..29918fd 100644 --- a/API/Controllers/TeamsController.cs +++ b/API/Controllers/TeamsController.cs @@ -82,7 +82,6 @@ public class TeamsController(ITeamService service, ITacticService tactics,IConte ); [HttpPost("/team/share-tactic")] - [Authorize] public async Task ShareTactic([FromBody] ShareTacticToTeamRequest sharedTactic) { var userId = accessor.CurrentUserId(HttpContext); @@ -92,7 +91,6 @@ public class TeamsController(ITeamService service, ITacticService tactics,IConte } [HttpDelete("/tactics/shared/{tacticId:int}/team/{teamId:int}")] - [Authorize] public async Task UnshareTactic(int tacticId, int teamId) { var currentUserId = accessor.CurrentUserId(HttpContext); @@ -112,7 +110,6 @@ public class TeamsController(ITeamService service, ITacticService tactics,IConte } [HttpGet("/tactics/shared/team/{teamId:int}")] - [Authorize] public async Task GetSharedTacticsToTeam(int teamId) { var currentUserId = accessor.CurrentUserId(HttpContext);