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

Method GetUserTeams

internal/database/org.go:475–477  ·  view source on GitHub ↗

GetTeams returns all teams that belong to organization, and that the user has joined.

(userID int64)

Source from the content-addressed store, hash-verified

473// GetTeams returns all teams that belong to organization,
474// and that the user has joined.
475func (org *User) GetUserTeams(userID int64) ([]*Team, error) {
476 return org.getUserTeams(x, userID)
477}
478
479// GetUserRepositories returns a range of repositories in organization which the user has access to,
480// and total number of records based on given condition.

Callers 1

HandleOrgAssignmentFunction · 0.80

Implementers 1

mailerUserinternal/database/issue_mail.go

Calls 1

getUserTeamsMethod · 0.95

Tested by

no test coverage detected