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

Function HasTeamRepo

internal/database/org_team.go:678–680  ·  view source on GitHub ↗

HasTeamRepo returns true if given team has access to the repository of the organization.

(orgID, teamID, repoID int64)

Source from the content-addressed store, hash-verified

676
677// HasTeamRepo returns true if given team has access to the repository of the organization.
678func HasTeamRepo(orgID, teamID, repoID int64) bool {
679 return hasTeamRepo(x, orgID, teamID, repoID)
680}
681
682func addTeamRepo(e Engine, orgID, teamID, repoID int64) error {
683 _, err := e.InsertOne(&TeamRepo{

Callers

nothing calls this directly

Calls 1

hasTeamRepoFunction · 0.85

Tested by

no test coverage detected