mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-01-29 00:29:46 +01:00
de5bb2a224
Co-authored-by: delvh <dev.lh@web.de>
(cherry picked from commit 9f1670e040
)
17 lines
478 B
Go
17 lines
478 B
Go
// Copyright 2023 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package setting
|
|
|
|
// Admin settings
|
|
var Admin struct {
|
|
DisableRegularOrgCreation bool
|
|
DefaultEmailNotification string
|
|
SendNotificationEmailOnNewUser bool
|
|
}
|
|
|
|
func loadAdminFrom(rootCfg ConfigProvider) {
|
|
mustMapSetting(rootCfg, "admin", &Admin)
|
|
sec := rootCfg.Section("admin")
|
|
Admin.DefaultEmailNotification = sec.Key("DEFAULT_EMAIL_NOTIFICATIONS").MustString("enabled")
|
|
}
|