Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
vkalgutkar opened this issue Jan 10, 2025 · 0 comments · Fixed by #34464
Closed

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

vkalgutkar opened this issue Jan 10, 2025 · 0 comments · Fixed by #34464

Comments

@vkalgutkar
Copy link

vkalgutkar commented Jan 10, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant