Add genre management functionality and update sidebar navigation

This commit is contained in:
2026-04-06 18:24:05 +00:00
parent d3f3d9c91a
commit c811135b92
7 changed files with 456 additions and 39 deletions
+13
View File
@@ -0,0 +1,13 @@
import { getServerSession } from "next-auth/next"
import { authOptions } from "@/lib/auth"
import { redirect } from "next/navigation"
import { GenreClient } from "./genre-client"
export default async function ModTheLoaiPage() {
const session = await getServerSession(authOptions)
if (!session || (session.user.role !== "MOD" && session.user.role !== "ADMIN")) {
redirect("/")
}
return <GenreClient />
}