mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-31 06:59:07 +02:00
🔒️ Require admin privileges to view settings page
This commit is contained in:
parent
0e4d9f0dbe
commit
935a8f6b70
1 changed files with 3 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
import { PageIcon } from "@/app/components/page-icons";
|
||||
import { requireAdmin } from "@/auth/queries";
|
||||
import {
|
||||
FullWidthLayout,
|
||||
FullWidthLayoutContent,
|
||||
|
@ -11,6 +12,8 @@ import { SettingsIcon } from "lucide-react";
|
|||
import { InstanceSettingsForm } from "./instance-settings-form";
|
||||
|
||||
async function loadData() {
|
||||
await requireAdmin();
|
||||
|
||||
const instanceSettings = await getInstanceSettings();
|
||||
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue