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

Method IsOwnedBy

internal/database/org.go:20–22  ·  view source on GitHub ↗

IsOwnedBy returns true if given user is in the owner team.

(userID int64)

Source from the content-addressed store, hash-verified

18
19// IsOwnedBy returns true if given user is in the owner team.
20func (org *User) IsOwnedBy(userID int64) bool {
21 return IsOrganizationOwner(org.ID, userID)
22}
23
24// IsOrgMember returns true if given user is member of organization.
25func (org *User) IsOrgMember(uid int64) bool {

Callers 11

HandleOrgAssignmentFunction · 0.45
IssuesFunction · 0.45
ForkPostFunction · 0.45
checkContextUserFunction · 0.45
SettingsPostFunction · 0.45
viewIssueFunction · 0.45
EditFunction · 0.45
SearchFunction · 0.45
CreateOrgRepoFunction · 0.45
MigrateFunction · 0.45
DeleteFunction · 0.45

Implementers 1

mailerUserinternal/database/issue_mail.go

Calls 1

IsOrganizationOwnerFunction · 0.85

Tested by

no test coverage detected