From a5845bc802976f20174b46326c488e4fa55552ad Mon Sep 17 00:00:00 2001 From: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com> Date: Wed, 22 Jan 2025 19:43:57 +0100 Subject: [PATCH] fix role access descriptions in authorization documentation --- aspnetcore/security/authorization/roles.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aspnetcore/security/authorization/roles.md b/aspnetcore/security/authorization/roles.md index c209ecdd1e0f..877ecb2a55b6 100644 --- a/aspnetcore/security/authorization/roles.md +++ b/aspnetcore/security/authorization/roles.md @@ -59,8 +59,8 @@ Access to an action can be limited by applying additional role authorization att In the preceding `ControlAllPanelController` controller: -* Members of the `Administrator` role or the `PowerUser` role can access the controller and the `ShutDown` action. -* Only members of the `Administrator` role can access the `SetTime` action. +* Members of the `Administrator` role or the `PowerUser` role can access the controller and the `SetTime` action. +* Only members of the `Administrator` role can access the `ShutDown` action. A controller can be secured but allow anonymous, unauthenticated access to individual actions: @@ -138,8 +138,8 @@ If multiple attributes are applied at the controller and action levels, ***all** In the preceding `ControlAllPanelController` controller: -* Members of the `Administrator` role or the `PowerUser` role can access the controller and the `SetTime` action. -* Only members of the `Administrator` role can access the `ShutDown` action. +* Members of the `Administrator` role can access the controller and the `SetTime` action. +* Only members of the `Administrator` **and** the `PowerUser` role can access the `ShutDown` action. You can also lock down a controller but allow anonymous, unauthenticated access to individual actions.