18 lines
382 B
Go
18 lines
382 B
Go
|
// Copyright 2024 The Forgejo Authors. All rights reserved.
|
||
|
// SPDX-License-Identifier: MIT
|
||
|
|
||
|
package setting
|
||
|
|
||
|
// Quota settings
|
||
|
var Quota = struct {
|
||
|
Enabled bool `ini:"ENABLED"`
|
||
|
DefaultGroups []string `ini:"DEFAULT_GROUPS"`
|
||
|
}{
|
||
|
Enabled: false,
|
||
|
DefaultGroups: []string{},
|
||
|
}
|
||
|
|
||
|
func loadQuotaFrom(rootCfg ConfigProvider) {
|
||
|
mustMapSetting(rootCfg, "quota", &Quota)
|
||
|
}
|