mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat: fallback for displayname of non-fixed role without displayname (#40277)
This commit is contained in:
parent
24af3593a2
commit
b88cd08177
@ -95,6 +95,9 @@ func (r RoleDTO) GetDisplayName() string {
|
||||
if r.IsFixed() && r.DisplayName == "" {
|
||||
r.DisplayName = fallbackDisplayName(r.Name)
|
||||
}
|
||||
if r.DisplayName == "" {
|
||||
return r.Name
|
||||
}
|
||||
return r.DisplayName
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user