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