diff --git a/apps/web/components/settings/company-brain-connections.tsx b/apps/web/components/settings/company-brain-connections.tsx index ae1489a4..e0e3185f 100644 --- a/apps/web/components/settings/company-brain-connections.tsx +++ b/apps/web/components/settings/company-brain-connections.tsx @@ -20,7 +20,6 @@ import { import { toast } from "sonner" import { dmSans125ClassName } from "@/lib/fonts" import { useHasCompanyBrain } from "@/hooks/use-company-brain" -import { useAuth } from "@lib/auth-context" import { brainConnectorIcon, SlackMark } from "../brain-connector-icons" import { PillButton } from "../integrations/install-steps" @@ -310,7 +309,6 @@ function RowSkeleton() { export default function CompanyBrainConnections() { const isCompanyBrain = useHasCompanyBrain() - const { user } = useAuth() const [catalog, setCatalog] = useState(null) const [catalogLoaded, setCatalogLoaded] = useState(false) const [rows, setRows] = useState([]) @@ -368,9 +366,6 @@ export default function CompanyBrainConnections() { (shared ? r.userId === null : r.userId !== null), ) - const isStaff = - user?.email?.toLowerCase().endsWith("@supermemory.com") ?? false - const connect = async (entry: CatalogEntry, shared: boolean) => { const key = `${entry.slug}:${shared ? "org" : "user"}` setBusy(key) @@ -462,10 +457,6 @@ export default function CompanyBrainConnections() { redirectUrl: window.location.href, }), }) - if (res.status === 403) { - toast.error("Custom MCP URLs are staff-only.") - return - } const data = (await res.json().catch(() => ({}))) as { authUrl?: string ok?: boolean @@ -609,20 +600,18 @@ export default function CompanyBrainConnections() { } /> ))} - {isStaff ? ( - - ) : null} + )}