A free open source IT asset/license management system
Only prompt for checkin if there is an assigned user
snipec8796cf045e8
diff --git a/app/Http/Controllers/AssetsController.php b/app/Http/Controllers/AssetsController.phpindex 673082a959..2f4f310a9e 100755--- a/app/Http/Controllers/AssetsController.php+++ b/app/Http/Controllers/AssetsController.php@@ -1802,7 +1802,7 @@ class AssetsController extends Controller}} else {- if (Gate::allows('assets.checkin')) {+ if (($asset->assigned_to!='') && (Gate::allows('assets.checkin'))) {$inout = '<a href="' . route('checkin/hardware',$asset->id) . '" class="btn btn-primary btn-sm" title="Checkin this asset" data-toggle="tooltip">' . trans('general.checkin') . '</a>';}