mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-24 08:02:18 +02:00
fixed minor sync error where members were not granted access
This commit is contained in:
parent
55fb93fcdc
commit
52e5ffaee5
@ -130,7 +130,11 @@ func (h *LoginHandler) GetLogin(w http.ResponseWriter, r *http.Request) error {
|
|||||||
|
|
||||||
if err := h.repos.Insert(repo); err != nil {
|
if err := h.repos.Insert(repo); err != nil {
|
||||||
log.Println("Error adding repo.", u.Login, remoteRepo.Name, err)
|
log.Println("Error adding repo.", u.Login, remoteRepo.Name, err)
|
||||||
continue
|
// this is probably because the repository already exists.
|
||||||
|
// we should still attempt to grant the user access, however.
|
||||||
|
//
|
||||||
|
// todo(bradrydzewski) we should inspect the response to ensure
|
||||||
|
// the failure is caused by a primary key violation.
|
||||||
}
|
}
|
||||||
|
|
||||||
// add user permissions
|
// add user permissions
|
||||||
|
Loading…
Reference in New Issue
Block a user