aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/setting.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-03-24 16:25:40 -0400
committerUnknwon <u@gogs.io>2017-03-24 16:25:40 -0400
commit8196430f47842fba4f227b105cd96d4b981d077d (patch)
treea7301f793cd341564edeb75425c21249b4b39035 /routers/repo/setting.go
parent7a99e56893d00632a18d7aa030028eca28a96e3e (diff)
repo: allow private repository to have public wiki or issues
Relates to #649 and #2157
Diffstat (limited to 'routers/repo/setting.go')
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/repo/setting.go b/routers/repo/setting.go
index eb139476..3a0df713 100644
--- a/routers/repo/setting.go
+++ b/routers/repo/setting.go
@@ -138,9 +138,11 @@ func SettingsPost(ctx *context.Context, f form.RepoSetting) {
case "advanced":
repo.EnableWiki = f.EnableWiki
+ repo.AllowPublicWiki = f.AllowPublicWiki
repo.EnableExternalWiki = f.EnableExternalWiki
repo.ExternalWikiURL = f.ExternalWikiURL
repo.EnableIssues = f.EnableIssues
+ repo.AllowPublicIssues = f.AllowPublicIssues
repo.EnableExternalTracker = f.EnableExternalTracker
repo.ExternalTrackerURL = f.ExternalTrackerURL
repo.ExternalTrackerFormat = f.TrackerURLFormat