diff --git a/frontend/pages/admin/[[...slug]].tsx b/frontend/pages/admin/[[...slug]].tsx index 919bb27e4..66d79006c 100644 --- a/frontend/pages/admin/[[...slug]].tsx +++ b/frontend/pages/admin/[[...slug]].tsx @@ -27,6 +27,12 @@ function AdminPage({ }): ReactElement { if (!userInfo) { return + } else if (!userInfo.is_superuser) { + return ( + + Admin permissions are required to access this page. + + ) } const router = useRouter()