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

Method IsUserOrgOwner

internal/database/users.go:1424–1426  ·  view source on GitHub ↗

IsUserOrgOwner returns true if the user is in the owner team of the given organization. TODO(unknwon): This is also used in templates, which should be fixed by having a dedicated type `template.User`.

(orgID int64)

Source from the content-addressed store, hash-verified

1422// TODO(unknwon): This is also used in templates, which should be fixed by
1423// having a dedicated type `template.User`.
1424func (u *User) IsUserOrgOwner(orgID int64) bool {
1425 return IsOrganizationOwner(orgID, u.ID)
1426}
1427
1428// IsPublicMember returns true if the user has public membership of the given
1429// organization.

Callers

nothing calls this directly

Implementers 1

mailerUserinternal/database/issue_mail.go

Calls 1

IsOrganizationOwnerFunction · 0.85

Tested by

no test coverage detected