mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-28 07:46:36 +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 =
|
const canShowProductUpdates =
|
||||||
user.serverAdmin || orgs[0]?.isOwner || orgs[0]?.isAdmin;
|
user.serverAdmin || Boolean(currentOrg?.isOwner || currentOrg?.isAdmin);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in New Issue
Block a user