* hide admin_api if not org and update link to sales * update for org members * updated back to orgAdmin check
This commit is contained in:
@@ -43,7 +43,7 @@ const AdminAPIViewWrapper = () => {
|
||||
buttons={
|
||||
<div className="space-y-2 rtl:space-x-reverse sm:space-x-2">
|
||||
<ButtonGroup>
|
||||
<Button color="primary" href="https://i.cal.com/sales/enterprise" target="_blank">
|
||||
<Button color="primary" href="https://cal.com/sales" target="_blank">
|
||||
{t("contact_sales")}
|
||||
</Button>
|
||||
<Button color="minimal" href="https://cal.com/enterprise" target="_blank">
|
||||
|
||||
@@ -192,8 +192,10 @@ const useTabs = () => {
|
||||
(childTab) => childTab.href !== "/settings/security/two-factor-auth"
|
||||
);
|
||||
return { ...tab, children: filtered };
|
||||
} else if (tab.href === "/settings/developer" && !!orgBranding) {
|
||||
const filtered = tab?.children?.filter((childTab) => childTab.name !== "admin_api");
|
||||
} else if (tab.href === "/settings/developer") {
|
||||
const filtered = tab?.children?.filter(
|
||||
(childTab) => isOrgAdminOrOwner || childTab.name !== "admin_api"
|
||||
);
|
||||
return { ...tab, children: filtered };
|
||||
}
|
||||
return tab;
|
||||
|
||||
Reference in New Issue
Block a user