grafana/pkg/api/dtos/acl.go

15 lines
403 B
Go
Raw Normal View History

2017-06-21 18:02:03 -05:00
package dtos
import "github.com/grafana/grafana/pkg/models"
2017-06-21 18:02:03 -05:00
type UpdateDashboardAclCommand struct {
Items []DashboardAclUpdateItem `json:"items"`
}
type DashboardAclUpdateItem struct {
UserID int64 `json:"userId"`
TeamID int64 `json:"teamId"`
Role *models.RoleType `json:"role,omitempty"`
Permission models.PermissionType `json:"permission"`
2017-06-21 18:02:03 -05:00
}