mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-01 15:49:08 +00:00
♻️ check by current Org
This commit is contained in:
@@ -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 (
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user