BookStack/resources/views/settings/roles/parts/checkbox.blade.php

7 lines
288 B
PHP
Raw Normal View History

@include('form.custom-checkbox', [
'name' => 'permissions[' . $permission . ']',
'value' => 'true',
'checked' => old('permissions'.$permission, false)|| (!old('display_name', false) && (isset($role) && $role->hasPermission($permission))),
'label' => $label
])