BookStackApp/BookStack

View on GitHub
resources/views/settings/roles/parts/checkbox.blade.php

Summary

Maintainability
A
0 mins
Test Coverage

@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
])