Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 1m30s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 1m28s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 1m31s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 1m36s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 1m45s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 1m44s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 1m35s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 1m38s
CI / Build-Artefakte aktuell (pull_request) Successful in 54s
- Rollen mit globalen Rechten und Rechten für einzelne Objekte (z. B. „Beiträge schreiben in Kategorie MAV-Info“); Rollen sind additiv, Zuweisungen merken sich ihre Herkunft (manuell oder später Identity-Provider-Gruppe) - Systemrolle „Administration“ ersetzt users.is_admin (Migration übernimmt bestehende Administratoren); nicht löschbar, man kann sie sich nicht selbst entziehen - Rechte je Person vorberechnet und gecacht, Versionszähler invalidiert bei Änderungen - Gate-Anbindung: registrierte Rechte entscheidet das Rechtesystem, Objektregeln die Policies; Admin-Seiten und Plugin-Ressourcen hinter passenden Rechten - Redaktion nach Kategorie: Schreiben und Veröffentlichen getrennt, Liste im Admin auf eigene Kategorien beschränkt, ohne Veröffentlichungsrecht bleibt ein Beitrag Entwurf - Zielgruppen (Rolle/Abteilung/Standort) für Kategorien und Termine als indizierte SQL-Bedingung in Listen, Detailseiten, Kacheln und .ics-Export - Admin: Rollen-Verwaltung, „Rechte prüfen“, Redaktion und Sichtbarkeit direkt an Kategorie bzw. Termin - Kern-Ressourcen explizit registriert, damit nach Updates liegengebliebene alte Dateien nicht doppelt geladen werden - docs/PLUGINS.md für Plugin-Entwicklung; Demo-Rolle „MAV“ Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
75 lines
3.6 KiB
PHP
75 lines
3.6 KiB
PHP
<x-filament-panels::page>
|
||
<style>
|
||
.ih-results { display: grid; gap: .25rem; margin-top: .5rem; }
|
||
.ih-result { text-align: left; padding: .5rem .75rem; border-radius: .5rem; font-size: .875rem; }
|
||
.ih-result:hover { background: rgb(243 244 246); }
|
||
.ih-table { width: 100%; font-size: .875rem; border-collapse: collapse; }
|
||
.ih-table th { text-align: left; font-weight: 500; color: rgb(107 114 128); padding: .375rem .75rem .375rem 0; }
|
||
.ih-table td { padding: .5rem .75rem .5rem 0; border-top: 1px solid rgb(243 244 246); }
|
||
.ih-muted { color: rgb(107 114 128); font-size: .875rem; }
|
||
.dark .ih-result:hover { background: rgb(31 41 55); }
|
||
.dark .ih-table td { border-color: rgb(55 65 81); }
|
||
.dark .ih-muted, .dark .ih-table th { color: rgb(156 163 175); }
|
||
</style>
|
||
|
||
<x-filament::section heading="Person auswählen">
|
||
<x-filament::input.wrapper>
|
||
<x-filament::input type="search" wire:model.live.debounce.300ms="search" placeholder="Name oder E-Mail …" />
|
||
</x-filament::input.wrapper>
|
||
@if ($results->isNotEmpty())
|
||
<div class="ih-results">
|
||
@foreach ($results as $result)
|
||
<button type="button" class="ih-result" wire:click="selectUser({{ $result->id }})">
|
||
<strong>{{ $result->name }}</strong> <span class="ih-muted">{{ $result->email }}</span>
|
||
</button>
|
||
@endforeach
|
||
</div>
|
||
@endif
|
||
</x-filament::section>
|
||
|
||
@if ($user)
|
||
<x-filament::section :heading="$user->name" :description="$user->email.($user->is_active ? '' : ' · deaktiviert – hat keinerlei Rechte')">
|
||
<p class="ih-muted">Admin-Bereich: <strong>{{ $canAdmin ? 'ja' : 'nein' }}</strong></p>
|
||
</x-filament::section>
|
||
|
||
<x-filament::section heading="Rollen">
|
||
@forelse ($roles as $role)
|
||
<x-filament::badge :color="$role->source === 'manual' ? 'gray' : 'info'" style="margin: 0 .375rem .375rem 0; display: inline-flex">
|
||
{{ $role->name }} · {{ $role->source === 'manual' ? 'manuell' : 'über Gruppe '.$role->source_ref }}
|
||
</x-filament::badge>
|
||
@empty
|
||
<p class="ih-muted">Keine Rollen – die Person kann das Portal nutzen, hat aber keine besonderen Rechte.</p>
|
||
@endforelse
|
||
</x-filament::section>
|
||
|
||
<x-filament::section heading="Globale Rechte">
|
||
@if ($global->isEmpty())
|
||
<p class="ih-muted">Keine.</p>
|
||
@else
|
||
<table class="ih-table">
|
||
<thead><tr><th>Recht</th><th>über Rolle</th></tr></thead>
|
||
<tbody>
|
||
@foreach ($global as $grant)
|
||
<tr><td>{{ $grant['label'] }}</td><td>{{ $grant['role'] }}</td></tr>
|
||
@endforeach
|
||
</tbody>
|
||
</table>
|
||
@endif
|
||
</x-filament::section>
|
||
|
||
<x-filament::section heading="Rechte für einzelne Objekte">
|
||
@if ($objects->isEmpty())
|
||
<p class="ih-muted">Keine.</p>
|
||
@else
|
||
<table class="ih-table">
|
||
<thead><tr><th>Recht</th><th>für</th><th>über Rolle</th></tr></thead>
|
||
<tbody>
|
||
@foreach ($objects as $grant)
|
||
<tr><td>{{ $grant['label'] }}</td><td>{{ $grant['object'] }}</td><td>{{ $grant['role'] }}</td></tr>
|
||
@endforeach
|
||
</tbody>
|
||
</table>
|
||
@endif
|
||
</x-filament::section>
|
||
@endif
|
||
</x-filament-panels::page>
|