Redaktion mit Bereichsleiste und Übersicht (0.42.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 6m51s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 6m48s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 7m16s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 7m21s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 9m30s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 9m44s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 8m49s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 8m37s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 44s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m8s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-27 18:38:44 +00:00
parent b1209a0d33
commit d5b7b1e0a8
146 changed files with 666 additions and 362 deletions

View file

@ -11,10 +11,18 @@ class EditorialController extends Controller
{
public function __invoke(Request $request, Editorial $editorial): Response
{
abort_unless($editorial->visibleFor($request->user()), 403);
$user = $request->user();
abort_unless($editorial->visibleFor($user), 403);
// /redaktion?bereich=news – ein Bereich in voller Breite; ohne Angabe die Übersicht
$key = (string) $request->query('bereich', '');
$section = $key !== '' ? $editorial->section($key, $user) : null;
abort_if($key !== '' && $section === null, 404);
return Inertia::render('Editorial/Index', [
'sections' => $editorial->resolve($request->user()),
'areas' => $editorial->menu($user),
'active' => $section['key'] ?? null,
'section' => $section,
]);
}
}