mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-06 12:19:50 +00:00
redirect to settings if org admin
This commit is contained in:
@@ -107,7 +107,15 @@ export default async function Page(props: {
|
||||
}
|
||||
|
||||
if (targetOrgId) {
|
||||
return <RedirectToOrg targetOrgId={targetOrgId} />;
|
||||
const targetOrg = orgs.find((org) => org.orgId === targetOrgId);
|
||||
return (
|
||||
<RedirectToOrg
|
||||
targetOrgId={targetOrgId}
|
||||
isAdminOrOwner={Boolean(
|
||||
targetOrg?.isAdmin || targetOrg?.isOwner
|
||||
)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user