Skip to content

Few Errors in Role-based authorization in ASP.NET Core DOC #34463

@vkalgutkar

Description

@vkalgutkar

Description

The following section describes the functionality of the Authorize attribute incorrectly

`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.`

Correction:

`In the preceding ControlAllPanelController controller:

Members of the Administrator role can access the Set Time action.
Members of the Administrator role and the PowerUser role can access the controller the ShutDown action

Page URL

https://learn.microsoft.com/en-us/aspnet/core/security/authorization/roles?view=aspnetcore-5.0&preserve-view=true#adding-role-checks

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/security/authorization/roles.md

Document ID

980a23e7-56e4-da94-a139-cab85135c5f7

Article author

@Rick-Anderson

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions