mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
Centralised handling of permission form data to own class
Also updates show roles on permission view to just those with permissions applied. Fixes rounded borders for lone permission rows. Moves "Everyone Else" handling from role to new class.
This commit is contained in:
@ -818,6 +818,9 @@ body.flexbox-support #entity-selector-wrap .popup-body .form-group {
|
||||
border-radius: 0 0 4px 4px;
|
||||
border-bottom-width: 1.5px;
|
||||
}
|
||||
.content-permissions-row:first-child:last-child {
|
||||
border-radius: 4px;
|
||||
}
|
||||
.content-permissions-row-toggle-all {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
@ -19,13 +19,13 @@
|
||||
@endif
|
||||
|
||||
<div class="content-permissions mt-m mb-xl">
|
||||
@foreach(\BookStack\Auth\Role::restrictable() as $role)
|
||||
@foreach($data->rolesWithPermissions() as $role)
|
||||
@include('form.entity-permissions-row', ['role' => $role, 'model' => $model])
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<div class="content-permissions mt-m mb-xl">
|
||||
@include('form.entity-permissions-row', ['role' => \BookStack\Auth\Role::getEveryoneElseRole(), 'model' => $model])
|
||||
@include('form.entity-permissions-row', ['role' => $data->everyoneElseRole(), 'model' => $model])
|
||||
</div>
|
||||
|
||||
<div class="text-right">
|
||||
|
Reference in New Issue
Block a user