diff --git a/app/actions/form.ts b/app/actions/form.ts index b88bedd..b696c54 100644 --- a/app/actions/form.ts +++ b/app/actions/form.ts @@ -8,10 +8,6 @@ import { redirect } from "next/navigation"; import { getServerSession } from "next-auth"; import { authOptions } from "@/app/api/auth/[...nextauth]/route"; -function requireAdmin() { - // No async check needed here — callers should check session before sensitive ops -} - export async function createForm(formData: FormData) { const session = await getServerSession(authOptions); const adminIds = (process.env.ADMIN_DISCORD_IDS ?? "").split(",").map((s) => s.trim()).filter(Boolean);