mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-31 15:24:31 +03:00
Removed old input checks on entity permission checkboxes
Old input check potentialy causing issues (#89) and is not needed on the pages which it shows.
This commit is contained in:
@ -1,7 +1,6 @@
|
|||||||
|
|
||||||
<label>
|
<label>
|
||||||
<input value="true" id="{{$name}}[{{$role->id}}][{{$action}}]" type="checkbox" name="{{$name}}[{{$role->id}}][{{$action}}]"
|
<input value="true" id="{{$name}}[{{$role->id}}][{{$action}}]" type="checkbox" name="{{$name}}[{{$role->id}}][{{$action}}]"
|
||||||
@if(old($name .'.'.$role->id.'.'.$action) || (!old() && isset($model) && $model->hasRestriction($role->id, $action))) checked="checked" @endif
|
@if(isset($model) && $model->hasRestriction($role->id, $action)) checked="checked" @endif>
|
||||||
>
|
|
||||||
{{ $label }}
|
{{ $label }}
|
||||||
</label>
|
</label>
|
Reference in New Issue
Block a user