Skip to content

A free open source IT asset/license management system

rm conditional that might be unnecessary

spencerrlonggec863df0074c
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));