Skip to content

Hide admin link from public navigation#11107

Open
ewbd09-svg wants to merge 1 commit into
SecureBananaLabs:mainfrom
ewbd09-svg:codex/hide-admin-nav-link
Open

Hide admin link from public navigation#11107
ewbd09-svg wants to merge 1 commit into
SecureBananaLabs:mainfrom
ewbd09-svg:codex/hide-admin-nav-link

Conversation

@ewbd09-svg

Copy link
Copy Markdown

/claim #743

Fixes #11106

Summary

  • Split the public navigation links from the admin-only link.
  • Add an optional currentUserRole prop to Navigation.
  • Keep the root layout's default visitor navigation free of the Admin link unless the caller explicitly passes admin.

Validation

  • node node_modules/typescript/bin/tsc -p apps/web/tsconfig.json --noEmit --incremental false
  • git diff --check

Note: npm run build -w apps/web compiled successfully but this local Windows sandbox blocked Next's TypeScript worker spawn with EPERM, so the direct TypeScript check above was used for validation.

github-actions Bot added a commit that referenced this pull request Jul 11, 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.

Public navigation should hide admin link for default visitors

1 participant