diff options
author | Unknwon <u@gogs.io> | 2017-03-24 16:32:14 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-03-24 16:32:14 -0400 |
commit | 674106c7b6f916b1f002f8c29ce790337bc615a5 (patch) | |
tree | ccb4be2805ac99c6a0f74f9ba3776371be7be8e3 /models/repo.go | |
parent | 8196430f47842fba4f227b105cd96d4b981d077d (diff) |
repo: cleanup some code
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/repo.go b/models/repo.go index 0656f83d..d19010a1 100644 --- a/models/repo.go +++ b/models/repo.go @@ -261,11 +261,11 @@ func (repo *Repository) IsPartialPublic() bool { } func (repo *Repository) CanGuestViewWiki() bool { - return repo.IsPartialPublic() && repo.EnableWiki && !repo.EnableExternalWiki && repo.AllowPublicWiki + return repo.EnableWiki && !repo.EnableExternalWiki && repo.AllowPublicWiki } func (repo *Repository) CanGuestViewIssues() bool { - return repo.IsPartialPublic() && repo.EnableIssues && !repo.EnableExternalTracker && repo.AllowPublicIssues + return repo.EnableIssues && !repo.EnableExternalTracker && repo.AllowPublicIssues } // MustOwner always returns a valid *User object to avoid conceptually impossible error handling. |