Manage team with access to all repositories

This commit is contained in:
Nicolas Gourdon
2019-04-28 19:29:13 +02:00
parent b478a10077
commit e5f6d9e766
4 changed files with 167 additions and 7 deletions
+1
View File
@@ -53,6 +53,7 @@ func (org *User) GetOwnerTeam() (*Team, error) {
}
func (org *User) getTeams(e Engine) error {
org.Teams = nil
return e.
Where("org_id=?", org.ID).
OrderBy("CASE WHEN name LIKE '" + ownerTeamName + "' THEN '' ELSE name END").