This commit is contained in:
Unknwon committed 2015-11-18 15:01:11 -05:00
1 parent d2808e38fe
commit 9a0902523b
3 files changed
+225 -218

No files matched your search

+6
View File
@@ -85,6 +85,12 @@ func SettingsPost(ctx *middleware.Context, form auth.RepoSettingForm) {
}
repo.Description = form.Description
repo.Website = form.Website
// Visibility of forked repository is forced sync with base repository.
if repo.IsFork {
form.Private = repo.BaseRepo.IsPrivate
}
visibilityChanged := repo.IsPrivate != form.Private
repo.IsPrivate = form.Private
if err := models.UpdateRepository(repo, visibilityChanged); err != nil {