mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Fixes #2048
This commit is contained in:
parent
ed9c6183c1
commit
f9572ffa0c
|
@ -110,7 +110,10 @@ class UsersController extends Controller
|
|||
$data['password'] = Input::get('password');
|
||||
|
||||
if ($user->save()) {
|
||||
$user->groups()->sync(Input::get('groups'));
|
||||
if (Input::has('groups')) {
|
||||
$user->groups()->sync(Input::get('groups'));
|
||||
}
|
||||
|
||||
if ((Input::get('email_user') == 1) && (Input::has('email'))) {
|
||||
// Send the credentials through email
|
||||
$data = array();
|
||||
|
|
Loading…
Reference in a new issue