From f0f03b7528912fbba8665129937f3b72eb2ce273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20S=C3=A1nchez?= Date: Fri, 21 Aug 2026 08:10:15 -0600 Subject: [PATCH] fix[frontend](tenants): hide bulk operation on tenants button if no mssp license is present --- .../platform-broadcast/components/PlatformBroadcastButton.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/features/platform-broadcast/components/PlatformBroadcastButton.tsx b/frontend/src/features/platform-broadcast/components/PlatformBroadcastButton.tsx index 98f6afaac..00e110ce8 100644 --- a/frontend/src/features/platform-broadcast/components/PlatformBroadcastButton.tsx +++ b/frontend/src/features/platform-broadcast/components/PlatformBroadcastButton.tsx @@ -2,6 +2,7 @@ import { useState, type ReactNode } from 'react' import { Radio } from 'lucide-react' import { Button } from '@/shared/components/ui/button' import { useAuth } from '@/features/auth/services/auth.context' +import { useBilling } from '@/features/billing' import { useSupportTenant } from '@/shared/lib/current-tenant' import type { BulkResult, BulkSelector } from '../services/broadcast-http.service' import { BroadcastDialog } from './BroadcastDialog' @@ -39,10 +40,11 @@ export interface PlatformBroadcastButtonProps { */ export function PlatformBroadcastButton(props: PlatformBroadcastButtonProps) { const { isPlatformAdmin } = useAuth() + const { license } = useBilling() const supportTenant = useSupportTenant() const [open, setOpen] = useState(false) - if (!isPlatformAdmin || supportTenant !== null) return null + if (!isPlatformAdmin || supportTenant !== null || license?.mssp !== true) return null return ( <>