diff --git a/CLAUDE.md b/CLAUDE.md
index 9fff938..c7c509f 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -66,6 +66,9 @@ around:
- This app can never read or verify the session. It calls `GET /admin/me` and believes the
answer; the API's `requireAppAccess('calendar')` is the actual gate. `/admin/me` answers 200
for an account without the calendar permission - check `apps`.
+- A calendar grant is `access` (may change things) or `read` (only look). Hide write controls
+ with `useCanEdit()` / `canEditCalendar` (`lib/permissions.ts`), which mirrors the API's
+ `canWrite`. Any new write control must check it.
- 401 and 403 mean different things and must not be collapsed. 401 means "nobody is signed
in" and is the only one worth redirecting to the login page - redirecting on 403 produces a
loop where signing in succeeds and lands straight back on the refusal. See `app/admin/layout.tsx`.
diff --git a/app/admin/layout.tsx b/app/admin/layout.tsx
index 51a4afa..e1f84d1 100644
--- a/app/admin/layout.tsx
+++ b/app/admin/layout.tsx
@@ -1,6 +1,6 @@
"use client";
-import { LogOutIcon, RefreshCwIcon } from "lucide-react";
+import { EyeIcon, LogOutIcon, RefreshCwIcon } from "lucide-react";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { useEffect, useState } from "react";
@@ -11,6 +11,7 @@ import { Skeleton } from "@/components/ui/skeleton";
import { Toaster } from "@/components/ui/sonner";
import { goToAdminLogin, signOut } from "@/lib/admin-auth";
import { api, ApiError } from "@/lib/api";
+import { canEditCalendar } from "@/lib/permissions";
import type { AdminUser } from "@/lib/types";
type Failure = "denied" | "unavailable";
@@ -82,6 +83,15 @@ export default function AdminLayout({ children }: { children: React.ReactNode })
) : (
)}
+ {me && !canEditCalendar(me) && (
+
+
+ Nur lesen
+
+ )}
{me && }