mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 18:12:13 +08:00
fix: marshal displayname RoleDTO (#40015)
This commit is contained in:
@ -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:"-"`
|
||||
|
Reference in New Issue
Block a user