mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -08:00
Set activated to default on when new user is created
This commit is contained in:
parent
5294489b0e
commit
5db5134ae0
|
@ -86,8 +86,11 @@ class UsersController extends Controller
|
||||||
$userPermissions = Helper::selectedPermissionsArray($permissions, Input::old('permissions', array()));
|
$userPermissions = Helper::selectedPermissionsArray($permissions, Input::old('permissions', array()));
|
||||||
$permissions = $this->filterDisplayable($permissions);
|
$permissions = $this->filterDisplayable($permissions);
|
||||||
|
|
||||||
|
$user = new User;
|
||||||
|
$user->activated = 1;
|
||||||
|
|
||||||
return view('users/edit', compact('groups', 'userGroups', 'permissions', 'userPermissions'))
|
return view('users/edit', compact('groups', 'userGroups', 'permissions', 'userPermissions'))
|
||||||
->with('user', new User);
|
->with('user', $user);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue