mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -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');
|
$data['password'] = Input::get('password');
|
||||||
|
|
||||||
if ($user->save()) {
|
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'))) {
|
if ((Input::get('email_user') == 1) && (Input::has('email'))) {
|
||||||
// Send the credentials through email
|
// Send the credentials through email
|
||||||
$data = array();
|
$data = array();
|
||||||
|
|
Loading…
Reference in a new issue