Skip to content

docs(dashboard): gate background queries on their endpoint's permission - #273

Merged
iammukeshm merged 2 commits into
fullstackhero:mainfrom
marcelo-maciel:docs/dashboard-permission-gated-queries
Nov 3, 2026
Merged

iammukeshm merged 2 commits into
fullstackhero:mainfrom
marcelo-maciel:docs/dashboard-permission-gated-queries

Conversation

@marcelo-maciel

Copy link
Copy Markdown
Contributor

Docs for fullstackhero/dotnet-starter-kit#1445.

  • Add a dashboard page, step 5: a query that mounts outside its own nav-gated page (topbar badge, overview card) needs an enabled gate on the endpoint's permission, and a manual refetch() needs the same check because it ignores enabled.
  • Add a dashboard page, test harness: the shell mock now answers GET /identity/permissions with SHELL_PERMISSIONS instead of [], and the no-access path is tested by re-mocking it with [].
  • Changelog: a 2026-10-14 entry for the fix.

Gate: npx astro check reports 0 errors. The new changelog link targets #step-5---permission-gating-nav--actions-not-routes, which matches the slug github-slugger produces for that heading.

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

Thanks! I dated the changelog entry for today's merge.

@iammukeshm
iammukeshm merged commit 5957c8c into fullstackhero:main Nov 3, 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