1
0

Added method to show all namespaces a user has access to

This commit is contained in:
kolaente
2018-07-02 08:54:44 +02:00
parent 6dfdcb9571
commit 124e4f4a5b
8 changed files with 88 additions and 35 deletions

View File

@ -64,7 +64,6 @@ func (TeamList) TableName() string {
return "team_list"
}
func GetAllTeamsByNamespaceID(id int64) (teams []*Team, err error) {
err = x.Table("teams").
Join("INNER", "team_namespaces", "teams.id = team_id").
@ -72,4 +71,4 @@ func GetAllTeamsByNamespaceID(id int64) (teams []*Team, err error) {
Find(teams)
return
}
}