diff --git a/pkg/handler/repos.go b/pkg/handler/repos.go index 405f1928f..20b3c9c3a 100644 --- a/pkg/handler/repos.go +++ b/pkg/handler/repos.go @@ -328,7 +328,7 @@ func RepoUpdate(w http.ResponseWriter, r *http.Request, u *User, repo *Repo) err default: repo.Disabled = len(r.FormValue("Disabled")) == 0 repo.DisabledPullRequest = len(r.FormValue("DisabledPullRequest")) == 0 - + repo.Private = len(r.FormValue("Private")) > 0 repo.Privileged = u.Admin && len(r.FormValue("Privileged")) > 0 // value of "" indicates the currently authenticated user diff --git a/pkg/template/pages/repo_settings.html b/pkg/template/pages/repo_settings.html index 8d92fe698..97ee9cdef 100644 --- a/pkg/template/pages/repo_settings.html +++ b/pkg/template/pages/repo_settings.html @@ -31,7 +31,7 @@