Dispatch Router-Struktur; AddPenalty Layout gefixed
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { User2 } from "lucide-react";
|
||||
import { PaginatedTable } from "../../../_components/PaginatedTable";
|
||||
import { getServerSession } from "api/auth/[...nextauth]/auth";
|
||||
|
||||
const AdminUserPage = async () => {
|
||||
const session = await getServerSession();
|
||||
return (
|
||||
<>
|
||||
<PaginatedTable
|
||||
@@ -27,10 +29,14 @@ const AdminUserPage = async () => {
|
||||
header: "Nachname",
|
||||
accessorKey: "lastname",
|
||||
},
|
||||
{
|
||||
header: "Email",
|
||||
accessorKey: "email",
|
||||
},
|
||||
...(session?.user.permissions.includes("ADMIN_USER_ADVANCED")
|
||||
? [
|
||||
{
|
||||
header: "Email",
|
||||
accessorKey: "email",
|
||||
},
|
||||
]
|
||||
: []),
|
||||
]}
|
||||
leftOfSearch={
|
||||
<p className="text-2xl font-semibold text-left flex items-center gap-2">
|
||||
|
||||
Reference in New Issue
Block a user