mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-23 11:43:47 -08:00
Fixed #6061 - Assigned user group cannot be removed
This commit is contained in:
parent
da34b82b3e
commit
245b3ca09f
|
@ -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'));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue