1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-10-30 07:32:39 +01: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:
Dan Brown 2016-04-03 10:23:16 +01:00
parent e9b596d3bc
commit 412eed19c3

View File

@ -1,7 +1,6 @@
<label>
<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>