mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-20 11:02:05 +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)
|
return nil, fmt.Errorf("Could not check org membership. %s", err)
|
||||||
}
|
}
|
||||||
if !allowedOrg {
|
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