summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorJohn Olheiser <john.olheiser@gmail.com>2020-06-02 20:21:38 -0500
committerGitHub <noreply@github.com>2020-06-02 21:21:38 -0400
commita6fd2f23f7e6bdc60c092207ac43af3a9a291f8f (patch)
treee9abecb2896bcb688235d8aba3a76281cde64873 /modules/setting
parentd0a18a12704360c06cf48b586956148a17a4505a (diff)
downloadgitea-a6fd2f23f7e6bdc60c092207ac43af3a9a291f8f.tar.gz
gitea-a6fd2f23f7e6bdc60c092207ac43af3a9a291f8f.zip
Allow site admin to disable mirrors (#11740)
* Allow site admin to disable mirrors Signed-off-by: jolheiser <john.olheiser@gmail.com> * No need to run through Safe Signed-off-by: jolheiser <john.olheiser@gmail.com> * Clarify only disabling NEW mirrors Signed-off-by: jolheiser <john.olheiser@gmail.com> * Apply suggestions from @guillep2k Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/repository.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/setting/repository.go b/modules/setting/repository.go
index 1796a8d6b5..3e63d458f8 100644
--- a/modules/setting/repository.go
+++ b/modules/setting/repository.go
@@ -42,6 +42,7 @@ var (
DisabledRepoUnits []string
DefaultRepoUnits []string
PrefixArchiveFiles bool
+ DisableMirrors bool
// Repository editor settings
Editor struct {
@@ -142,6 +143,7 @@ var (
DisabledRepoUnits: []string{},
DefaultRepoUnits: []string{},
PrefixArchiveFiles: true,
+ DisableMirrors: false,
// Repository editor settings
Editor: struct {