1
0
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:
Brad Rydzewski 2014-08-07 21:33:04 -07:00
parent 55fb93fcdc
commit 52e5ffaee5

View File

@ -130,7 +130,11 @@ func (h *LoginHandler) GetLogin(w http.ResponseWriter, r *http.Request) error {
if err := h.repos.Insert(repo); err != nil {
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