From e078d59812f736768158013e468c8cc6698b41b7 Mon Sep 17 00:00:00 2001 From: trafficlunar Date: Mon, 30 Mar 2026 13:38:34 +0100 Subject: [PATCH] fix: admins can't see author buttons --- src/components/mii/author-buttons.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/mii/author-buttons.tsx b/src/components/mii/author-buttons.tsx index a237ddd..1a9414b 100644 --- a/src/components/mii/author-buttons.tsx +++ b/src/components/mii/author-buttons.tsx @@ -22,7 +22,7 @@ interface Props { export default function AuthorButtons({ mii }: Props) { const session = useSession(); - if (!session.data || Number(session.data.user?.id) !== mii.userId || Number(session.data.user?.id) !== Number(process.env.NEXT_PUBLIC_ADMIN_USER_ID)) + if (!session.data || (Number(session.data.user?.id) !== mii.userId && Number(session.data.user?.id) !== Number(process.env.NEXT_PUBLIC_ADMIN_USER_ID))) return null; return (