Skip to content

Commit 22a6c81

Browse files
authored
fix(#692): Error in front when create new role with Model::shouldBeStrict() (#693)
1 parent b8e4526 commit 22a6c81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/panel/edit.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class="form-textarea mt-1 block w-full"
6363
class="form-checkbox h-4 w-4"
6464
name="permissions[]"
6565
value="{{$permission->getKey()}}"
66-
{!! $permission->assigned ? 'checked' : '' !!}
66+
{!! ($model && $permission->assigned) ? 'checked' : '' !!}
6767
>
6868
<span class="ml-2">{{$permission->display_name ?? $permission->name}}</span>
6969
</label>
@@ -101,4 +101,4 @@ class="btn btn-red mr-4"
101101
}
102102
}
103103
</script>
104-
@endsection
104+
@endsection

0 commit comments

Comments
 (0)