A free open source IT asset/license management system
rm commented code
spencerrlongga8cd1027f3cc
diff --git a/app/Http/Controllers/Users/UsersController.php b/app/Http/Controllers/Users/UsersController.phpindex e609727c00..3da0c5a3ac 100755--- a/app/Http/Controllers/Users/UsersController.php+++ b/app/Http/Controllers/Users/UsersController.php@@ -234,12 +234,7 @@ class UsersController extends Controller$this->authorize('update', $user);- //see if i can get this working at request level- //if ($request->has('company_id') && $user->allAssignedCount() > 0 && Setting::getSettings()->full_multiple_companies_support) {- // return back()->with('error', trans('admin/users/message.multi_company_items_assigned'));- //}-- // Figure out of this user was an admin before this edit+ // Figure out of this user was an admin before this edit$orig_permissions_array = $user->decodePermissions();$orig_superuser = '0';if (is_array($orig_permissions_array)) {