mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-14 00:46:39 +00:00
setup server admin
This commit is contained in:
@@ -22,5 +22,13 @@ export default async function SetupLayout({
|
||||
redirect("/?redirect=/setup");
|
||||
}
|
||||
|
||||
return <div className="w-full max-w-2xl mx-auto p-3 md:mt-32">{children}</div>;
|
||||
if (
|
||||
!(process.env.DISABLE_USER_CREATE_ORG === "false" || user.serverAdmin)
|
||||
) {
|
||||
redirect("/");
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="w-full max-w-2xl mx-auto p-3 md:mt-32">{children}</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user