diff --git a/app/pages/page.tsx b/app/pages/page.tsx index 529ed9f..91fe642 100644 --- a/app/pages/page.tsx +++ b/app/pages/page.tsx @@ -4,14 +4,12 @@ import { formatDate } from "@/lib/utils"; import { ArchiveIcon, CalendarIcon, PencilLineIcon } from "lucide-react"; import { Metadata } from "next"; import Link from "next/link"; -import { redirect } from "next/navigation"; export const metadata: Metadata = { title: "List of pages" }; export default async function List() { const user = await getCurrentUser(); const isAdmin = user?.isAdmin; - if (!isAdmin) redirect("/"); const pagesPublished = await getPages("PAGE", "PUBLISHED"); const pagesArchived = isAdmin ? await getPages("PAGE", "ARCHIVED") : []; diff --git a/components/footer.tsx b/components/footer.tsx index 5efe341..b189616 100644 --- a/components/footer.tsx +++ b/components/footer.tsx @@ -17,7 +17,7 @@ export default function Footer() {
Main News - The Congress + List of pages
President