mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix: marshal displayname RoleDTO (#40015)
This commit is contained in:
parent
52220b2470
commit
5374eaca89
@ -101,6 +101,7 @@ func (r RoleDTO) GetDisplayName() string {
|
||||
func (r RoleDTO) MarshalJSON() ([]byte, error) {
|
||||
type Alias RoleDTO
|
||||
|
||||
r.DisplayName = r.GetDisplayName()
|
||||
return json.Marshal(&struct {
|
||||
Alias
|
||||
Global bool `json:"global" xorm:"-"`
|
||||
|
Loading…
Reference in New Issue
Block a user