mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Fixed problem with import when using snipeit:import command (#6550)
This commit is contained in:
parent
75252bce05
commit
8420cb7ec1
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue