0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-11-04 02:04:11 +01:00
gitea/modules/setting/restricted_user.go

15 lines
348 B
Go

// Copyright 2025 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package setting
var RestrictedUser = struct {
AllowEditDueDate bool
}{}
func loadRestrictedUserFrom(rootCfg ConfigProvider) {
sec := rootCfg.Section("restricted_user")
RestrictedUser.AllowEditDueDate = sec.Key("ALLOW_EDIT_DUE_DATE").MustBool(false)
}