Skip to content

Hide Modules nav item from non-admins - #669

Open
arifulhoque7 wants to merge 1 commit into
weDevsOfficial:developfrom
arifulhoque7:fix/hide-modules-nav-non-admin
Open

Hide Modules nav item from non-admins#669
arifulhoque7 wants to merge 1 commit into
weDevsOfficial:developfrom
arifulhoque7:fix/hide-modules-nav-non-admin

Conversation

@arifulhoque7

Copy link
Copy Markdown
Contributor

What

Hides the sidebar "Modules" nav item from non-admin users. It was shown to Co-Workers even though the Modules page denies them ("Access denied").

Root cause

AppSidebar.jsx — the "Modules + Premium" section was gated only on !isFrontend; the sibling "Administration" section is gated on isAdmin.

Fix

Gate the Modules section on isAdmin (module management is a site-admin action).

Verification (browser)

Co-Worker (project member): Modules nav gone; /modules still denies. Admin: unchanged.

Closes weDevsOfficial/pm-pro#476

https://claude.ai/code/session_01PsKkoH3J6MwAvEBgd7aUvG

The sidebar "Modules" section was gated only on !isFrontend, so non-admin
users (e.g. project Co-Workers) saw the Modules nav item even though the
Modules page itself denies them ("Access denied"). Gate the section on
isAdmin, matching the Administration section — module management is a
site-admin action.

Claude-Session: https://claude.ai/code/session_01PsKkoH3J6MwAvEBgd7aUvG
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