Skip to content

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

Open
marcelo-maciel wants to merge 1 commit into
fullstackhero:mainfrom
marcelo-maciel:docs/dashboard-permission-gated-queries
Open

marcelo-maciel wants to merge 1 commit 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.

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