mirror of
https://gitlab.w-hs.de/an14051/backerup-website.git
synced 2026-07-27 17:35:29 +00:00
feat: implement file deletion functionality and enhance deployment script
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
import Link from "next/link";
|
||||
import { readMeta, listGroups } from "@/lib/store";
|
||||
import { getSession } from "@/lib/session";
|
||||
import BrowseClient from "./BrowseClient";
|
||||
|
||||
export default async function BrowsePage() {
|
||||
const [allRecords, groups] = await Promise.all([readMeta(), listGroups()]);
|
||||
const [allRecords, groups, session] = await Promise.all([
|
||||
readMeta(),
|
||||
listGroups(),
|
||||
getSession(),
|
||||
]);
|
||||
|
||||
return (
|
||||
<div className="mx-auto max-w-5xl px-6 py-16">
|
||||
@@ -31,7 +36,7 @@ export default async function BrowsePage() {
|
||||
</div>
|
||||
|
||||
{/* Client section: search + filter + cards */}
|
||||
<BrowseClient records={allRecords} groups={groups} />
|
||||
<BrowseClient records={allRecords} groups={groups} isAdmin={session?.role === "admin"} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user