adds should_autoassign boolean to users table

This commit is contained in:
Godfrey M
2022-11-15 15:42:57 -08:00
parent da0efaa278
commit 45636b8114
5 changed files with 50 additions and 1 deletions
@@ -121,6 +121,7 @@ class UsersController extends Controller
$user->created_by = Auth::user()->id;
$user->start_date = $request->input('start_date', null);
$user->end_date = $request->input('end_date', null);
$user->should_autoassign= $request->input('should_autoassign', 0);
// Strip out the superuser permission if the user isn't a superadmin
$permissions_array = $request->input('permission');
@@ -274,6 +275,7 @@ class UsersController extends Controller
$user->website = $request->input('website', null);
$user->start_date = $request->input('start_date', null);
$user->end_date = $request->input('end_date', null);
$user->should_autoassign = $request->input('should_autoassign', 0);
// Update the location of any assets checked out to this user
Asset::where('assigned_type', User::class)