mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Merge pull request #19826 from hvitved/csharp/function-auth-test
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