This commit is contained in:
1 parent
8efd032cc6
commit
df38dccbf1
735 files changed
+128321
-120870
No files matched your search
@@ -3,19 +3,21 @@ import { canAccess, getAdminContext, PERMS } from "@/lib/permissions";
|
||||
import { PollForm } from "../poll-form";
|
||||
|
||||
export default async function CreatePollPage() {
|
||||
const { session, permissions } = await getAdminContext();
|
||||
if (!canAccess(permissions, PERMS.POLLS_EDIT, session.user.rank)) {
|
||||
redirect("/admin/polls");
|
||||
}
|
||||
const { session, permissions } = await getAdminContext();
|
||||
if (!canAccess(permissions, PERMS.POLLS_EDIT, session.user.rank)) {
|
||||
redirect("/admin/polls");
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<div>
|
||||
<h1 className="text-3xl font-bold tracking-tight">Create Poll</h1>
|
||||
<p className="text-muted-foreground">Create a new community poll or survey</p>
|
||||
</div>
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<div>
|
||||
<h1 className="text-3xl font-bold tracking-tight">Create Poll</h1>
|
||||
<p className="text-muted-foreground">
|
||||
Create a new community poll or survey
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<PollForm />
|
||||
</div>
|
||||
);
|
||||
<PollForm />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user