mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-29 06:30:47 -08:00
Merge pull request #14020 from snipe/bug/sc-24326
Added $user->created_at to API user create method
This commit is contained in:
commit
6bb842f52c
|
@ -353,6 +353,7 @@ class UsersController extends Controller
|
||||||
|
|
||||||
$user = new User;
|
$user = new User;
|
||||||
$user->fill($request->all());
|
$user->fill($request->all());
|
||||||
|
$user->created_by = Auth::user()->id;
|
||||||
|
|
||||||
if ($request->has('permissions')) {
|
if ($request->has('permissions')) {
|
||||||
$permissions_array = $request->input('permissions');
|
$permissions_array = $request->input('permissions');
|
||||||
|
|
Loading…
Reference in a new issue