Этот коммит содержится в:
Reed Garmsen
2015-07-07 18:12:53 -07:00
родитель ddeb3ec738
Коммит 65dc307e68
2 изменённых файлов: 3 добавлений и 12 удалений

Просмотреть файл

@@ -457,12 +457,12 @@ func inviteMembers(c *Context, w http.ResponseWriter, r *http.Request) {
}
var invNum int64 = 0
for _, invite := range invites.Invites {
for i, invite := range invites.Invites {
if result := <-Srv.Store.User().GetByEmail(c.Session.TeamId, invite["email"]); result.Err == nil || result.Err.Message != "We couldn't find the existing account" {
invNum = int64(i)
c.Err = model.NewAppError("invite_members", "This person is already on your team", strconv.FormatInt(invNum, 10))
return
}
invNum++;
}
ia := make([]string, len(invites.Invites))