Set activated checkbox to 1 by default on new user

This commit is contained in:
snipe 2018-08-14 18:17:37 -07:00
parent ce45c3af4e
commit 1543cdbc61

View file

@ -90,8 +90,11 @@ class UsersController extends Controller
$userPermissions = Helper::selectedPermissionsArray($permissions, Input::old('permissions', array()));
$permissions = $this->filterDisplayable($permissions);
$user = new User;
$user->activated = 1;
return view('users/edit', compact('groups', 'userGroups', 'permissions', 'userPermissions'))
->with('user', new User);
->with('user', $user);
}
/**