mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
Reference the consumable instance instead of the model
This commit is contained in:
parent
ca1198ceb2
commit
07744ca7bd
|
@ -45,7 +45,7 @@
|
||||||
</li>
|
</li>
|
||||||
@endcan
|
@endcan
|
||||||
|
|
||||||
@can('update', \App\Models\Consumable::class)
|
@can('update', $consumable)
|
||||||
<li class="pull-right">
|
<li class="pull-right">
|
||||||
<a href="#" data-toggle="modal" data-target="#uploadFileModal">
|
<a href="#" data-toggle="modal" data-target="#uploadFileModal">
|
||||||
<i class="fas fa-paperclip" aria-hidden="true"></i> {{ trans('button.upload') }}
|
<i class="fas fa-paperclip" aria-hidden="true"></i> {{ trans('button.upload') }}
|
||||||
|
|
Loading…
Reference in a new issue