File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
aspnetcore/security/authorization Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ author: rick-anderson
44description : Learn how to restrict ASP.NET Core controller and action access by passing roles to the Authorize attribute.
55ms.author : riande
66monikerRange : ' >= aspnetcore-3.1'
7- ms.date : 10/14/2016
7+ ms.date : 10/14/2024
88uid : security/authorization/roles
99---
1010# Role-based authorization in ASP.NET Core
@@ -57,8 +57,8 @@ Access to an action can be limited by applying additional role authorization att
5757
5858In the preceding ` ControlAllPanelController ` controller:
5959
60- * Members of the ` Administrator ` role or the ` PowerUser ` role can access the controller and the ` SetTime ` action.
61- * Only members of the ` Administrator ` role can access the ` ShutDown ` action.
60+ * Members of the ` Administrator ` role or the ` PowerUser ` role can access the controller and the ` ShutDown ` action.
61+ * Only members of the ` Administrator ` role can access the ` SetTime ` action.
6262
6363A controller can be secured but allow anonymous, unauthenticated access to individual actions:
6464
You can’t perform that action at this time.
0 commit comments