Catalyst / admin/Synapse-Sonar 14.8 GB / 57.8 GB 40.0 GB free
Help Sign in

admin / Synapse-Sonar

public

Attack Surface Simulation

Code Issues Pull requests Pipelines Packages Security Insights Wiki Settings
Synapse-Sonar / synapse-sonar / app / (app) / agents / page.tsx 490 B · main
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
import { redirect } from "next/navigation";
import { getServerSession } from "next-auth";
import { authOptions } from "@/lib/authOptions";
import AgentsDownload from "@/components/AgentsDownload";

export const dynamic = "force-dynamic";

export default async function Page() {
  // Agents deal with ingest credentials — Tenant Admins only.
  const session = await getServerSession(authOptions);
  if (session?.user?.role !== "TENANT_ADMIN") redirect("/");
  return <AgentsDownload />;
}