diff --git a/app/Http/Controllers/UsersController.php b/app/Http/Controllers/UsersController.php index 5c32d25b11..88e2911f59 100755 --- a/app/Http/Controllers/UsersController.php +++ b/app/Http/Controllers/UsersController.php @@ -259,9 +259,7 @@ class UsersController extends Controller // Only save groups if the user is a super user if (Auth::user()->isSuperUser()) { - if ($request->has('groups')) { - $user->groups()->sync($request->input('groups')); - } + $user->groups()->sync($request->input('groups')); }