From 3f6913c8e541d042b422d45284d1bf74a06214fc Mon Sep 17 00:00:00 2001 From: MarcEricMartel <74071476+MarcEricMartel@users.noreply.github.com> Date: Wed, 23 Nov 2022 15:00:50 -0800 Subject: [PATCH] Update InvoiceController.cs --- .../GrossesMitainesAPI/Controllers/InvoiceController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;