mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-23 12:44:12 -08:00
Comment clarification on #7186
This commit is contained in:
parent
8c73a47afb
commit
b4b6d6b571
|
@ -269,7 +269,7 @@ class UsersController extends Controller
|
|||
// Check if the request has groups passed and has a value
|
||||
if ($request->filled('groups')) {
|
||||
$user->groups()->sync($request->input('groups'));
|
||||
// The groups value has been passed but it is null, so we should blank it out
|
||||
// The groups field has been passed but it is null, so we should blank it out
|
||||
} elseif ($request->has('groups')) {
|
||||
$user->groups()->sync(array());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue