feat: support disable bots completely

This commit is contained in:
Jason Song committed 2022-12-01 15:27:28 +08:00
1 parent ab69fdc6fe
commit b2745bff43
8 files changed
+33 -23

No files matched your search

+1
View File
@@ -799,6 +799,7 @@ func Contexter(ctx context.Context) func(next http.Handler) http.Handler {
ctx.Data["EnableOpenIDSignIn"] = setting.Service.EnableOpenIDSignIn
ctx.Data["DisableMigrations"] = setting.Repository.DisableMigrations
ctx.Data["DisableStars"] = setting.Repository.DisableStars
ctx.Data["EnableBots"] = setting.Bots.Enabled
ctx.Data["ManifestData"] = setting.ManifestData