Save the user id who is creating the user

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-06-23 17:19:08 -07:00
parent 7f05029089
commit c9b81d65f1

View file

@ -117,6 +117,7 @@ class UsersController extends Controller
$user->zip = $request->input('zip', null); $user->zip = $request->input('zip', null);
$user->remote = $request->input('remote', 0); $user->remote = $request->input('remote', 0);
$user->website = $request->input('website', null); $user->website = $request->input('website', null);
$user->created_by = Auth::user()->id;
// Strip out the superuser permission if the user isn't a superadmin // Strip out the superuser permission if the user isn't a superadmin
$permissions_array = $request->input('permission'); $permissions_array = $request->input('permission');