A free open source IT asset/license management system
Removed duplicated asset->location sync on user edit
snipe3032d08d4faa
diff --git a/app/Http/Controllers/Users/UsersController.php b/app/Http/Controllers/Users/UsersController.phpindex fc98dd36aa..6056f08b62 100755--- a/app/Http/Controllers/Users/UsersController.php+++ b/app/Http/Controllers/Users/UsersController.php@@ -306,11 +306,6 @@ class UsersController extends Controller$user->end_date = $request->input('end_date', null);$user->autoassign_licenses = $request->input('autoassign_licenses', 0);- // Update the location of any assets checked out to this user- Asset::where('assigned_type', User::class)- ->where('assigned_to', $user->id)- ->update(['location_id' => $request->input('location_id', null)]);-// Permission-gated fields: `activated` lives inside this gate too.// An earlier version of this method assigned `activated` right// before the gate on the theory that the gate would overwrite it.