MCPcopy Create free account
hub / github.com/gogs/gogs / hasTeamRepo

Function hasTeamRepo

internal/database/org_team.go:672–675  ·  view source on GitHub ↗
(e Engine, orgID, teamID, repoID int64)

Source from the content-addressed store, hash-verified

670}
671
672func 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.
678func HasTeamRepo(orgID, teamID, repoID int64) bool {

Callers 2

hasRepositoryMethod · 0.85
HasTeamRepoFunction · 0.85

Calls 2

WhereMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected