Skip to content

Commit

Permalink
Added $user->created_at to API user create method
Browse files Browse the repository at this point in the history
Signed-off-by: snipe <[email protected]>
  • Loading branch information
snipe committed Dec 12, 2023
1 parent 068f64a commit e894138
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/Api/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ public function store(SaveUserRequest $request)

$user = new User;
$user->fill($request->all());
$user->created_by = Auth::user()->id;

if ($request->has('permissions')) {
$permissions_array = $request->input('permissions');
Expand Down

0 comments on commit e894138

Please sign in to comment.