mirror of https://github.com/go-gitea/gitea.git
Fix a bug when setting repository private
This commit is contained in:
parent
ddd1e6ca83
commit
bbc3145f3e
|
|
@ -209,7 +209,7 @@ func handleSettingsPostUpdate(ctx *context.Context) {
|
|||
|
||||
// Visibility of forked repository is forced sync with base repository.
|
||||
if repo.IsFork {
|
||||
form.Private = repo.BaseRepo.IsPrivate || repo.BaseRepo.Owner.Visibility == structs.VisibleTypePrivate
|
||||
repo.IsPrivate = repo.BaseRepo.IsPrivate || repo.BaseRepo.Owner.Visibility == structs.VisibleTypePrivate
|
||||
}
|
||||
|
||||
if err := repo_service.UpdateRepository(ctx, repo, false); err != nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue