Skip to content

Commit

Permalink
Comment clarification on #7186
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Jul 15, 2019
1 parent 8c73a47 commit b4b6d6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public function update(SaveUserRequest $request, $id)
// 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());
}
Expand Down

0 comments on commit b4b6d6b

Please sign in to comment.