From ec863df0074ce785aa3ac80f4871accb8eb2145b Mon Sep 17 00:00:00 2001 From: spencerrlongg Date: Mon, 12 Aug 2024 16:58:53 -0500 Subject: [PATCH] rm conditional that might be unnecessary --- app/Http/Controllers/Users/UsersController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Users/UsersController.php b/app/Http/Controllers/Users/UsersController.php index 96fbae49af..adf2d5f3dd 100755 --- a/app/Http/Controllers/Users/UsersController.php +++ b/app/Http/Controllers/Users/UsersController.php @@ -266,11 +266,11 @@ class UsersController extends Controller $user->location_id = $request->input('location_id', null); if ($request->has('company_id')) { if ($user->assets->count() > 0) { - if ($user->assets()->pluck('company_id') != $user->getRawOriginal('company_id')) { + //if ($user->assets()->pluck('company_id') != $user->getRawOriginal('company_id')) { { return back()->with('error', 'this user has assets, check them in first'); } - } + //} } } $user->company_id = Company::getIdForUser($request->input('company_id', null));