mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-26 21:21:18 -08:00
Added created by
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
54f7917fbe
commit
8c3b50dbf2
|
@ -114,6 +114,7 @@ class UserImporter extends ItemImporter
|
||||||
|
|
||||||
$this->log('No matching user, creating one');
|
$this->log('No matching user, creating one');
|
||||||
$user = new User();
|
$user = new User();
|
||||||
|
$user->created_by = auth()->id();
|
||||||
$user->fill($this->sanitizeItemForStoring($user));
|
$user->fill($this->sanitizeItemForStoring($user));
|
||||||
|
|
||||||
if ($user->save()) {
|
if ($user->save()) {
|
||||||
|
|
Loading…
Reference in a new issue