(e Engine, orgID, teamID, repoID int64)
| 670 | } |
| 671 | |
| 672 | func hasTeamRepo(e Engine, orgID, teamID, repoID int64) bool { |
| 673 | has, _ := e.Where("org_id = ?", orgID).And("team_id = ?", teamID).And("repo_id = ?", repoID).Get(new(TeamRepo)) |
| 674 | return has |
| 675 | } |
| 676 | |
| 677 | // HasTeamRepo returns true if given team has access to the repository of the organization. |
| 678 | func HasTeamRepo(orgID, teamID, repoID int64) bool { |
no test coverage detected