import { redirect } from "next/navigation"

import { requirePermission } from "@/shared/lib/auth-guard"
import { Permissions } from "@/shared/types/permissions"

export const dynamic = "force-dynamic"

export default async function GradeManagementPage(): Promise<void> {
  await requirePermission(Permissions.GRADE_MANAGE)
  redirect("/management/grade/classes")
}
