mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Remove AuthConfigUIAdminAccess (#85452)
* Remove AuthConfigUIAdminAccess
This commit is contained in:
@@ -327,10 +327,6 @@ func DeclareFixedRoles(service Service, cfg *setting.Cfg) error {
|
||||
Grants: []string{RoleGrafanaAdmin},
|
||||
}
|
||||
|
||||
if cfg.AuthConfigUIAdminAccess {
|
||||
authenticationConfigWriter.Grants = append(authenticationConfigWriter.Grants, string(org.RoleAdmin))
|
||||
}
|
||||
|
||||
return service.DeclareFixedRoles(ldapReader, ldapWriter, orgUsersReader, orgUsersWriter,
|
||||
settingsReader, statsReader, usersReader, usersWriter, authenticationConfigWriter, generalAuthConfigWriter)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user