From 97489b95640fd3cbb4d9962eee035ed35e0c47eb Mon Sep 17 00:00:00 2001 From: Fred KISSIE Date: Sat, 6 Dec 2025 00:58:11 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20check=20by=20current=20Org?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/LayoutSidebar.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/LayoutSidebar.tsx b/src/components/LayoutSidebar.tsx index 81daf577..33778995 100644 --- a/src/components/LayoutSidebar.tsx +++ b/src/components/LayoutSidebar.tsx @@ -97,8 +97,9 @@ export function LayoutSidebar({ } } + const currentOrg = orgs.find((org) => org.orgId === orgId); const canShowProductUpdates = - user.serverAdmin || orgs[0]?.isOwner || orgs[0]?.isAdmin; + user.serverAdmin || Boolean(currentOrg?.isOwner || currentOrg?.isAdmin); return (