mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 09:59:00 +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 { PageIcon } from "@/app/components/page-icons";
|
||||||
|
import { requireAdmin } from "@/auth/queries";
|
||||||
import {
|
import {
|
||||||
FullWidthLayout,
|
FullWidthLayout,
|
||||||
FullWidthLayoutContent,
|
FullWidthLayoutContent,
|
||||||
|
@ -11,6 +12,8 @@ import { SettingsIcon } from "lucide-react";
|
||||||
import { InstanceSettingsForm } from "./instance-settings-form";
|
import { InstanceSettingsForm } from "./instance-settings-form";
|
||||||
|
|
||||||
async function loadData() {
|
async function loadData() {
|
||||||
|
await requireAdmin();
|
||||||
|
|
||||||
const instanceSettings = await getInstanceSettings();
|
const instanceSettings = await getInstanceSettings();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue