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

Method GetOwnerTeam

internal/database/org.go:43–45  ·  view source on GitHub ↗

GetOwnerTeam returns owner team of organization.

()

Source from the content-addressed store, hash-verified

41
42// GetOwnerTeam returns owner team of organization.
43func (org *User) GetOwnerTeam() (*Team, error) {
44 return org.getOwnerTeam(x)
45}
46
47func (org *User) getTeams(e Engine) (err error) {
48 org.Teams, err = getTeamsByOrgID(e, org.ID)

Callers 2

RemoveOrgUserFunction · 0.80
MigrateRepositoryFunction · 0.80

Implementers 1

mailerUserinternal/database/issue_mail.go

Calls 1

getOwnerTeamMethod · 0.95

Tested by

no test coverage detected