mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +01:00
C#: Add another test for MissingAccessControl.ql
This commit is contained in:
@@ -41,6 +41,14 @@ public class ProfileController : Controller
|
||||
doThings();
|
||||
return View();
|
||||
}
|
||||
|
||||
// GOOD: The Authorize attribute is used.
|
||||
[Authorize("foo")]
|
||||
public ActionResult Delete5(int id)
|
||||
{
|
||||
doThings();
|
||||
return View();
|
||||
}
|
||||
}
|
||||
|
||||
[Authorize]
|
||||
|
||||
Reference in New Issue
Block a user