From e894138fd4a31b95bc88e327dc7a2c021147c6bb Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 12 Dec 2023 12:26:02 +0000 Subject: [PATCH] Added $user->created_at to API user create method Signed-off-by: snipe --- app/Http/Controllers/Api/UsersController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/Api/UsersController.php b/app/Http/Controllers/Api/UsersController.php index 913fe0f5a7..4fb35872a0 100644 --- a/app/Http/Controllers/Api/UsersController.php +++ b/app/Http/Controllers/Api/UsersController.php @@ -353,6 +353,7 @@ class UsersController extends Controller $user = new User; $user->fill($request->all()); + $user->created_by = Auth::user()->id; if ($request->has('permissions')) { $permissions_array = $request->input('permissions');