Reference the accessory instance instead of the model

This commit is contained in:
Marcus Moore 2023-01-18 13:48:01 -08:00
parent e506ed7950
commit c089f6eff2
No known key found for this signature in database

View file

@ -84,7 +84,7 @@
</li>
@endcan
@can('update', \App\Models\Accessory::class)
@can('update', $accessory)
<li class="pull-right">
<a href="#" data-toggle="modal" data-target="#uploadFileModal">
<i class="fas fa-paperclip" aria-hidden="true"></i> {{ trans('button.upload') }}