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

Method IsPartialPublic

internal/database/repo.go:284–286  ·  view source on GitHub ↗

IsPartialPublic returns true if repository is public or allow public access to wiki or issues.

()

Source from the content-addressed store, hash-verified

282
283// IsPartialPublic returns true if repository is public or allow public access to wiki or issues.
284func (r *Repository) IsPartialPublic() bool {
285 return !r.IsPrivate || r.AllowPublicWiki || r.AllowPublicIssues
286}
287
288func (r *Repository) CanGuestViewWiki() bool {
289 return r.EnableWiki && !r.EnableExternalWiki && r.AllowPublicWiki

Callers 1

RepoAssignmentFunction · 0.80

Implementers 2

Repositoryinternal/database/repo.go
mailerRepointernal/database/issue_mail.go

Calls

no outgoing calls

Tested by

no test coverage detected