Reine Redaktionsrechte öffnen nicht mehr das Backend (0.25.1)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 4m6s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 4m20s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m17s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m18s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 7m10s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m41s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 5m44s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 5m59s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m51s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 4m6s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 4m20s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m17s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m18s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 7m10s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m41s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 5m44s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 5m59s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m51s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
4d155457b8
commit
34d6cdbf1c
121 changed files with 371 additions and 318 deletions
|
|
@ -62,14 +62,14 @@ class RoleResource extends Resource
|
|||
]),
|
||||
|
||||
Section::make('Globale Rechte')
|
||||
->description('Gelten im ganzen Portal.')
|
||||
->description('Gelten im ganzen Portal. Rechte mit „im Portal“ werden in der Redaktion ausgeübt und öffnen nicht das Backend.')
|
||||
->visible(fn (?Role $record) => ! $record?->isAdministration())
|
||||
->schema([
|
||||
CheckboxList::make('global_abilities')
|
||||
->hiddenLabel()
|
||||
->columns(2)
|
||||
->options(fn () => collect($abilities->global())->map(fn (array $a) => $a['label'])->all())
|
||||
->descriptions(fn () => collect($abilities->global())->map(fn (array $a) => $a['group'])->all())
|
||||
->descriptions(fn () => collect($abilities->global())->map(fn (array $a) => $a['group'].($a['portal'] ? ' · im Portal' : ' · Backend'))->all())
|
||||
->bulkToggleable()
|
||||
->afterStateHydrated(fn (CheckboxList $component, ?Role $record) => $component->state(
|
||||
$record?->grants()->whereNull('resource_type')->pluck('ability')->all() ?? []
|
||||
|
|
@ -100,7 +100,7 @@ class RoleResource extends Resource
|
|||
->live()
|
||||
->options(fn () => collect($abilities->all())
|
||||
->filter(fn (array $a) => $a['resource'] !== null)
|
||||
->map(fn (array $a) => $a['group'].': '.$a['label'])
|
||||
->map(fn (array $a) => $a['group'].': '.$a['label'].($a['portal'] ? ' (im Portal)' : ''))
|
||||
->all()),
|
||||
Select::make('resource_ids')
|
||||
->label('Für')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue