diff --git a/GrossesMitaines/GrossesMitainesAPI/Controllers/InvoiceController.cs b/GrossesMitaines/GrossesMitainesAPI/Controllers/InvoiceController.cs index 47dfedf..aa24d95 100644 --- a/GrossesMitaines/GrossesMitainesAPI/Controllers/InvoiceController.cs +++ b/GrossesMitaines/GrossesMitainesAPI/Controllers/InvoiceController.cs @@ -193,7 +193,7 @@ public class InvoiceController : Controller { return Ok(inv); } - [HttpPost("Cancel/{id}"), Authorize(Roles = "Client, Administrateur")] + [HttpPost("Cancel/{id}")] public ActionResult Cancel(int id) { InvoiceModel inv; List prods;