Fixed a bug where it was possible to add a team multiple times to a list/namespace
This commit is contained in:
@ -2,7 +2,7 @@ package models
|
||||
|
||||
// Create implements the create method to assign a user to a team
|
||||
func (tm *TeamMember) Create(doer *User) (err error) {
|
||||
//tm.TeamID = id
|
||||
// TODO: Check if it exists etc
|
||||
_, err = x.Insert(tm)
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user