C#: Add another test for MissingAccessControl.ql

This commit is contained in:
Tom Hvitved
2025-06-20 11:49:30 +02:00
parent cdd6245b98
commit 84e93e2dc5

View File

@@ -41,6 +41,14 @@ public class ProfileController : Controller
doThings(); doThings();
return View(); return View();
} }
// GOOD: The Authorize attribute is used.
[Authorize("foo")]
public ActionResult Delete5(int id)
{
doThings();
return View();
}
} }
[Authorize] [Authorize]