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

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests