From 494c73febb7522bfdfae2de9af15bc3ef7c6cddf Mon Sep 17 00:00:00 2001 From: okxint Date: Thu, 21 May 2026 19:25:19 +0530 Subject: [PATCH] fix: hide Pages nav item from guests who have no page access Guests are restricted to only their own pages by the backend when guest_view_all_features is off. Showing the Pages nav link leads to a confusing empty sidebar section. Align with Cycles and Modules, which already exclude GUEST from their access arrays. Fixes #9103 --- .../core/components/workspace/sidebar/project-navigation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/core/components/workspace/sidebar/project-navigation.tsx b/apps/web/core/components/workspace/sidebar/project-navigation.tsx index 3582215f3bd..42d970ee2e0 100644 --- a/apps/web/core/components/workspace/sidebar/project-navigation.tsx +++ b/apps/web/core/components/workspace/sidebar/project-navigation.tsx @@ -116,7 +116,7 @@ export const ProjectNavigation = observer(function ProjectNavigation(props: TPro name: "Pages", href: `/${workspaceSlug}/projects/${projectId}/pages`, icon: PageIcon, - access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER, EUserPermissions.GUEST], + access: [EUserPermissions.ADMIN, EUserPermissions.MEMBER], shouldRender: project?.page_view ?? false, sortOrder: 5, },