mirror of
https://github.com/fleetdm/fleet
synced 2026-05-22 00:18:27 +00:00
Fix page in RequireSetup check (#465)
The previous value would require setup unless there were at least 2 users. Now one user is sufficient to proceed past setup.
This commit is contained in:
parent
af6a5ee1b6
commit
5d8a42a959
1 changed files with 1 additions and 1 deletions
|
|
@ -334,7 +334,7 @@ func forceSetup(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
// RequireSetup checks if the service must be configured by an administrator.
|
||||
func RequireSetup(svc kolide.Service, logger kitlog.Logger) bool {
|
||||
users, err := svc.ListUsers(context.Background(), kolide.ListOptions{Page: 1, PerPage: 1})
|
||||
users, err := svc.ListUsers(context.Background(), kolide.ListOptions{Page: 0, PerPage: 1})
|
||||
if err != nil {
|
||||
logger.Log("err", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue