Skip to content

docs: RequirePermission requires every listed permission (#1424) - #263

Open
marcelo-maciel wants to merge 1 commit into
fullstackhero:mainfrom
marcelo-maciel:docs/require-permission-all
Open

marcelo-maciel wants to merge 1 commit into
fullstackhero:mainfrom
marcelo-maciel:docs/require-permission-all

Conversation

@marcelo-maciel

@marcelo-maciel marcelo-maciel commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Docs for fullstackhero/dotnet-starter-kit#1424, the fix for fullstackhero/dotnet-starter-kit#1415.

.RequirePermission(a, b) now requires every listed permission. Before the fix, RequiredPermissionAuthorizationHandler checked only the first one, so a user holding a passed a gate that also demanded b.

  • Authorization (security/authorization.mdx, "Applying a gate"): states the AND semantics with a two-permission example built from real Catalog constants, notes the old first-only behavior, and documents that metadata with no permissions left (for example .RequirePermission("")) now denies instead of opening.
  • Shared building block (building-blocks/shared.mdx): the EndpointExtensions.RequirePermission bullet now says the user needs every listed permission.
  • Changelog: new 2026-10-02 entry.

npx astro check: 0 errors, 0 warnings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant