mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -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->note = $note;
|
||||
if(Auth::user())
|
||||
$log->user_id = Auth::user()->id;
|
||||
|
||||
$log->logaction('checkin from');
|
||||
|
||||
$params = [
|
||||
|
|
Loading…
Reference in a new issue