From 245b3ca09fbebcff8c373e0e53133014c8387443 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 12 Feb 2019 23:49:42 -0800 Subject: [PATCH] Fixed #6061 - Assigned user group cannot be removed --- app/Http/Controllers/Users/UsersController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Http/Controllers/Users/UsersController.php b/app/Http/Controllers/Users/UsersController.php index 76503c3735..0e938e42b3 100755 --- a/app/Http/Controllers/Users/UsersController.php +++ b/app/Http/Controllers/Users/UsersController.php @@ -256,9 +256,7 @@ class UsersController extends Controller // Only save groups if the user is a super user if (Auth::user()->isSuperUser()) { - if ($request->filled('groups')) { - $user->groups()->sync($request->input('groups')); - } + $user->groups()->sync($request->input('groups')); }