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

Method GetTeams

internal/database/org.go:53–55  ·  view source on GitHub ↗

GetTeams returns all teams that belong to organization.

()

Source from the content-addressed store, hash-verified

51
52// GetTeams returns all teams that belong to organization.
53func (org *User) GetTeams() error {
54 return org.getTeams(x)
55}
56
57// TeamsHaveAccessToRepo returns all teams that have given access level to the repository.
58func (org *User) TeamsHaveAccessToRepo(repoID int64, mode AccessMode) ([]*Team, error) {

Callers 3

DeleteRepositoryFunction · 0.80
HandleOrgAssignmentFunction · 0.80
ListTeamsFunction · 0.80

Implementers 1

mailerUserinternal/database/issue_mail.go

Calls 1

getTeamsMethod · 0.95

Tested by

no test coverage detected