1
0

Added method to add a user to a team

This commit is contained in:
konrad
2018-07-26 09:53:32 +02:00
committed by kolaente
parent 0b2f66965a
commit bc580e0115
8 changed files with 66 additions and 8 deletions

View File

@ -16,7 +16,7 @@ func (t *Team) Create(doer *User) (err error) {
}
// Insert the current user as member and admin
tm := TeamMember{TeamID: t.ID, UserID: doer.ID, IsAdmin: true}
tm := TeamMember{TeamID: t.ID, UserID: doer.ID, Admin: true}
err = tm.Create(doer)
return
}