index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
routers
/
repo
/
setting.go
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
Unknwon <u@gogs.io>
2017-03-24 16:25:40 -0400
committer
Unknwon <u@gogs.io>
2017-03-24 16:25:40 -0400
commit
8196430f47842fba4f227b105cd96d4b981d077d
(
patch
)
tree
a7301f793cd341564edeb75425c21249b4b39035
/
routers/repo/setting.go
parent
7a99e56893d00632a18d7aa030028eca28a96e3e
(
diff
)
repo: allow private repository to have public wiki or issues
Relates to #649 and #2157
Diffstat
(limited to 'routers/repo/setting.go')
-rw-r--r--
routers/repo/setting.go
2
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