mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-26 20:22:18 +00: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:
parent
e9b596d3bc
commit
412eed19c3
@ -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>
|
Loading…
Reference in New Issue
Block a user