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

Method IsOrganization

internal/database/users.go:1295–1297  ·  view source on GitHub ↗

IsOrganization returns true if the user is an organization.

()

Source from the content-addressed store, hash-verified

1293
1294// IsOrganization returns true if the user is an organization.
1295func (u *User) IsOrganization() bool {
1296 return u.Type == UserTypeOrganization
1297}
1298
1299// APIFormat returns the API format of a user.
1300func (u *User) APIFormat() *api.User {

Callers 15

IsOrgMemberMethod · 0.95
UpdateOrgProtectBranchFunction · 0.80
getUsersWithAccesModeMethod · 0.80
MigrateRepositoryFunction · 0.80
createRepositoryFunction · 0.80
TransferOwnershipFunction · 0.80
updateRepositoryFunction · 0.80
DeleteRepositoryFunction · 0.80
recalculateAccessesMethod · 0.80
prepareWebhooksFunction · 0.80

Implementers 1

mailerUserinternal/database/issue_mail.go

Calls

no outgoing calls

Tested by

no test coverage detected