A free open source IT asset/license management system
Fixed problem with import when using snipeit:import command (#6550)
Hubert8420cb7ec1f5
diff --git a/app/Models/Loggable.php b/app/Models/Loggable.phpindex 61b1d6deb7..f2a96ca99b 100644--- a/app/Models/Loggable.php+++ b/app/Models/Loggable.php@@ -41,7 +41,8 @@ trait Loggable$settings = Setting::getSettings();$log = new Actionlog;$log = $this->determineLogItemType($log);- $log->user_id = Auth::user()->id;+ if(Auth::user())+ $log->user_id = Auth::user()->id;if (!isset($target)) {throw new Exception('All checkout logs require a target');