From 65b7d3e1de22548b63157b1e6fd80d865850d0a4 Mon Sep 17 00:00:00 2001 From: Marc Seitz Date: Thu, 23 Jan 2025 12:53:02 +0100 Subject: [PATCH] feat: enable view download on trial --- pages/api/teams/[teamId]/datarooms/[id]/export-visits.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/api/teams/[teamId]/datarooms/[id]/export-visits.ts b/pages/api/teams/[teamId]/datarooms/[id]/export-visits.ts index 1c3c599ed..1dc749a07 100644 --- a/pages/api/teams/[teamId]/datarooms/[id]/export-visits.ts +++ b/pages/api/teams/[teamId]/datarooms/[id]/export-visits.ts @@ -48,7 +48,7 @@ export default async function handler( return res.status(404).end("Team not found"); } - if (team.plan.includes("free")) { + if (team.plan === "free") { return res .status(403) .json({ message: "This feature is not available for your plan" });