mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Fixed #6061 - Assigned user group cannot be removed
This commit is contained in:
parent
da34b82b3e
commit
245b3ca09f
|
@ -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')) {
|
||||||
|
|
Loading…
Reference in a new issue