mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05: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