mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 09:32:23 +08:00
Access Control: Remove built-in role assignment by default (#49058)
* Remove FF-bultins * Add a param to test br-simplifying
This commit is contained in:
@ -447,6 +447,9 @@ type Cfg struct {
|
||||
// Access Control
|
||||
RBACEnabled bool
|
||||
RBACPermissionCache bool
|
||||
// Undocumented option as a backup in case removing builtin-role assignment
|
||||
// fails
|
||||
RBACBuiltInRoleAssignmentEnabled bool
|
||||
}
|
||||
|
||||
type CommandLineArgs struct {
|
||||
@ -1360,6 +1363,7 @@ func readAccessControlSettings(iniFile *ini.File, cfg *Cfg) {
|
||||
rbac := iniFile.Section("rbac")
|
||||
cfg.RBACEnabled = rbac.Key("enabled").MustBool(true)
|
||||
cfg.RBACPermissionCache = rbac.Key("permission_cache").MustBool(true)
|
||||
cfg.RBACBuiltInRoleAssignmentEnabled = rbac.Key("builtin_role_assignment_enabled").MustBool(false)
|
||||
}
|
||||
|
||||
func readUserSettings(iniFile *ini.File, cfg *Cfg) error {
|
||||
|
Reference in New Issue
Block a user