Fixed #6061 - Assigned user group cannot be removed

This commit is contained in:
snipe 2019-02-12 23:49:42 -08:00
parent da34b82b3e
commit 245b3ca09f

View file

@ -256,10 +256,8 @@ class UsersController extends Controller
// Only save groups if the user is a super user // Only save groups if the user is a super user
if (Auth::user()->isSuperUser()) { if (Auth::user()->isSuperUser()) {
if ($request->filled('groups')) {
$user->groups()->sync($request->input('groups')); $user->groups()->sync($request->input('groups'));
} }
}
if ($request->filled('username')) { if ($request->filled('username')) {