Files
reader/app/mod/thieu-thong-tin/page.tsx
T
virtus ac9cecdcdb feat: add missing fields management for novels
- Implemented API routes for fetching and updating novels with missing fields.
- Created a client-side interface for moderators to manage novels with missing information.
- Added bulk update functionality for missing fields including author, cover, description, and genres.
- Integrated genre management with the ability to create new genres on the fly.
- Enhanced the home page with a carousel for displaying popular novels.
2026-03-13 18:50:56 +07:00

15 lines
461 B
TypeScript

import { getServerSession } from "next-auth/next"
import { authOptions } from "@/lib/auth"
import { redirect } from "next/navigation"
import { MissingFieldsClient } from "./missing-fields-client"
export default async function ModMissingFieldsPage() {
const session = await getServerSession(authOptions)
if (!session || (session.user.role !== "MOD" && session.user.role !== "ADMIN")) {
redirect("/")
}
return <MissingFieldsClient />
}