Skip to content

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

Merged
iammukeshm merged 2 commits into
fullstackhero:mainfrom
marcelo-maciel:docs/require-permission-all
Oct 9, 2026
Merged

iammukeshm merged 2 commits 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.

@iammukeshm iammukeshm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Matches #1424.

# Conflicts:
#	src/content/docs/changelog/index.mdx

@iammukeshm iammukeshm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Matches #1424. Merged main to resolve the changelog conflict.

@iammukeshm
iammukeshm merged commit 540a83c into fullstackhero:main Oct 9, 2026
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.

2 participants