mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Check for Auth::user before trying to log id (for cli)
This commit is contained in:
parent
b999c50a2e
commit
f1a6308002
|
@ -144,7 +144,9 @@ trait Loggable
|
||||||
|
|
||||||
$log->location_id = null;
|
$log->location_id = null;
|
||||||
$log->note = $note;
|
$log->note = $note;
|
||||||
|
if(Auth::user())
|
||||||
$log->user_id = Auth::user()->id;
|
$log->user_id = Auth::user()->id;
|
||||||
|
|
||||||
$log->logaction('checkin from');
|
$log->logaction('checkin from');
|
||||||
|
|
||||||
$params = [
|
$params = [
|
||||||
|
|
Loading…
Reference in a new issue