mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Fixed problem with import when using snipeit:import command (#6550)
This commit is contained in:
parent
75252bce05
commit
8420cb7ec1
|
@ -41,6 +41,7 @@ trait Loggable
|
||||||
$settings = Setting::getSettings();
|
$settings = Setting::getSettings();
|
||||||
$log = new Actionlog;
|
$log = new Actionlog;
|
||||||
$log = $this->determineLogItemType($log);
|
$log = $this->determineLogItemType($log);
|
||||||
|
if(Auth::user())
|
||||||
$log->user_id = Auth::user()->id;
|
$log->user_id = Auth::user()->id;
|
||||||
|
|
||||||
if (!isset($target)) {
|
if (!isset($target)) {
|
||||||
|
|
Loading…
Reference in a new issue