Skip to content

Commit 77a70b1

Browse files
committed
Fixed authorization check issue
1 parent 6863e01 commit 77a70b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/list.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@can('adminCreate', $model)
1+
@can('adminCreate', new $model)
22
<div class="flex flex-row-reverse d-print-none with-border">
33
<a href="{{ $routes['create'] }}" class="btn btn-primary">{{ __('Add') }}</a>
44
</div>
@@ -31,7 +31,7 @@
3131
</th>
3232
@endif
3333
@endforeach
34-
@canany(['adminUpdate', 'adminDelete'], $model)
34+
@canany(['adminUpdate', 'adminDelete'], new $model)
3535
<th class="py-2 px-4 bg-base-50 font-bold uppercase text-sm text-left">
3636
{{ __('Actions') }}
3737
</th>

0 commit comments

Comments
 (0)