mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-18 17:17:06 +00:00
display list of required orgs in github login error
This commit is contained in:
@@ -102,7 +102,7 @@ func (r *GitHub) Authorize(res http.ResponseWriter, req *http.Request) (*model.L
|
||||
return nil, fmt.Errorf("Could not check org membership. %s", err)
|
||||
}
|
||||
if !allowedOrg {
|
||||
return nil, fmt.Errorf("User does not belong to correct org")
|
||||
return nil, fmt.Errorf("User does not belong to correct org. Must belong to %v", r.Orgs)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user