0
Standalone pages in the sidebar can't be hidden by role
Source: twentyhq/twenty#32040 · opened by @alecrubin
Problem Standalone pages always show in the sidebar, for every role. There's no way to limit a page to certain roles. isNavigationMenuItemReadable returns true for every PAGE_LAYOUT item. A folder shows when any of its children is readable, so a folder that contains a page also shows to everyone. Our case Our staff-only tools are app pages in a "Tools" folder. Members with a restricted role (no record access) still see the folder and every page in it. Opening a page shows permission errors. No data leaks, but these members shouldn't see the pages at all. Repro (v2.63.0) 1. Add an app standalone page with a PAGE_LAYOUT navigation item. 2. Create a role that can't read any records, and assign it to a member. 3. Sign in as that member. The page shows in the sidebar. Possible fix Hide a PAGE_LAYOUT item when the viewer can't read the objects its widgets use. isPageLayoutWidgetReadable already runs this check for widgets. Alternatively, let apps set a…
No pledges yet. Be the first to back this.
Comments
Similar requests
Hierarchical roles
2 votes · 0 comments
Download permission per object, not only per role
1 vote · 0 comments
Add toggle to select/multi-select field to dis/allow custom value creation
1 vote · 0 comments
Let a lone app widget fill its record-page tab edge to edge (extend #27863 to record pages)
0 votes · 0 comments
Workflow step mutations are unreachable via workspace API keys (`Forbidden resource`); also hidden from GraphQL introspection
0 votes · 0 comments
No comments yet.