mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-02-21 09:22:39 +08:00
Merge branch 'cw1998-fix/dot-in-role-names'
This commit is contained in:
commit
c653618eab
@ -3,10 +3,10 @@
|
||||
@foreach($roles as $role)
|
||||
<div>
|
||||
@include('components.custom-checkbox', [
|
||||
'name' => $name . '[' . $role->name . ']',
|
||||
'name' => $name . '[' . str_replace('.', 'DOT', $role->name) . ']',
|
||||
'label' => $role->display_name,
|
||||
'value' => $role->id,
|
||||
'checked' => old($name . '.' . $role->name) || (!old('name') && isset($model) && $model->hasRole($role->name))
|
||||
'checked' => old($name . '.' . str_replace('.', 'DOT', $role->name)) || (!old('name') && isset($model) && $model->hasRole($role->name))
|
||||
])
|
||||
</div>
|
||||
@endforeach
|
||||
|
Loading…
x
Reference in New Issue
Block a user