Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

hide apply page in-app if program is not public

Steven Tey70f42c245f64
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/apply/page.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/apply/page.tsx
index fa4dbed87f..939c25507e 100644
--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/apply/page.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/apply/page.tsx
@@ -23,7 +23,7 @@ export default async function ProgramDetailsPage(props: {
groupSlug: DEFAULT_PARTNER_GROUP.slug,
});
- if (!program || !program.group) {
+ if (!program || !program.group || !program.group.applicationFormPublishedAt) {
redirect("/programs");
}