Added method to show all namespaces a user has access to
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user