Use the username instead of a user when adding a user to a team or giving it rights (#76)
This commit is contained in:
@ -53,7 +53,7 @@ func (t *Team) Create(a web.Auth) (err error) {
|
||||
}
|
||||
|
||||
// Insert the current user as member and admin
|
||||
tm := TeamMember{TeamID: t.ID, UserID: doer.ID, Admin: true}
|
||||
tm := TeamMember{TeamID: t.ID, Username: doer.Username, Admin: true}
|
||||
if err = tm.Create(doer); err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user