mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
More specific gate for checkin
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
8546bbdd65
commit
52894615ce
|
@ -190,7 +190,7 @@
|
||||||
|
|
||||||
@if (($asset->assetstatus) && ($asset->assetstatus->deployable=='1'))
|
@if (($asset->assetstatus) && ($asset->assetstatus->deployable=='1'))
|
||||||
@if (($asset->assigned_to != '') && ($asset->deleted_at==''))
|
@if (($asset->assigned_to != '') && ($asset->deleted_at==''))
|
||||||
@can('checkin', \App\Models\Asset::class)
|
@can('checkin', $asset)
|
||||||
<div class="col-md-12 hidden-print" style="padding-top: 5px;">
|
<div class="col-md-12 hidden-print" style="padding-top: 5px;">
|
||||||
<span class="tooltip-wrapper"{!! (!$asset->model ? ' data-tooltip="true" title="'.trans('admin/hardware/general.model_invalid_fix').'"' : '') !!}>
|
<span class="tooltip-wrapper"{!! (!$asset->model ? ' data-tooltip="true" title="'.trans('admin/hardware/general.model_invalid_fix').'"' : '') !!}>
|
||||||
<a role="button" href="{{ route('hardware.checkin.create', $asset->id) }}" class="btn btn-sm btn-primary bg-purple btn-social btn-block hidden-print{{ (!$asset->model ? ' disabled' : '') }}">
|
<a role="button" href="{{ route('hardware.checkin.create', $asset->id) }}" class="btn btn-sm btn-primary bg-purple btn-social btn-block hidden-print{{ (!$asset->model ? ' disabled' : '') }}">
|
||||||
|
|
Loading…
Reference in a new issue