mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-01-08 15:18:26 -05:00
8f8e52f31a
Co-authored-by: delvh <dev.lh@web.de> (cherry picked from commit9f1670e040
) (cherry picked from commitde5bb2a224
)
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")
|
|
}
|