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

Method hasRepository

internal/database/org_team.go:98–100  ·  view source on GitHub ↗
(e Engine, repoID int64)

Source from the content-addressed store, hash-verified

96}
97
98func (t *Team) hasRepository(e Engine, repoID int64) bool {
99 return hasTeamRepo(e, t.OrgID, t.ID, repoID)
100}
101
102// HasRepository returns true if given repository belong to team.
103func (t *Team) HasRepository(repoID int64) bool {

Callers 4

HasRepositoryMethod · 0.95
TransferOwnershipFunction · 0.80
DeleteRepositoryFunction · 0.80

Calls 1

hasTeamRepoFunction · 0.85

Tested by

no test coverage detected