Initial Baby Step to refactoring settings from global vars to instance (#11777)
* wip: start on refactoring settings * settings: progress on settings refactor * refactor: progress on settings refactoring * fix: fixed failing test * settings: moved smtp settings from global to instance
This commit is contained in:
@@ -63,9 +63,9 @@ type QuotaSettings struct {
|
||||
Global *GlobalQuota
|
||||
}
|
||||
|
||||
func readQuotaSettings() {
|
||||
func (cfg *Cfg) readQuotaSettings() {
|
||||
// set global defaults.
|
||||
quota := Cfg.Section("quota")
|
||||
quota := cfg.Raw.Section("quota")
|
||||
Quota.Enabled = quota.Key("enabled").MustBool(false)
|
||||
|
||||
// per ORG Limits
|
||||
|
||||
Reference in New Issue
Block a user