mirror of https://github.com/go-gitea/gitea.git
Merge 63db354aa2 into 01351cc6c7
commit
6c166b6078
@ -0,0 +1,14 @@
|
||||
// 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)
|
||||
}
|
||||
Loading…
Reference in New Issue