mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C#: Add another test for MissingAccessControl.ql
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user