alertlist: disable pause button when user does not have permission

This commit is contained in:
Daniel Lee
2018-01-30 23:31:02 +01:00
parent 4bc5945c17
commit eb765d288c
10 changed files with 191 additions and 9 deletions

View File

@@ -199,6 +199,14 @@ type GetDashboardsQuery struct {
Result []*Dashboard
}
type GetDashboardPermissionsForUserQuery struct {
DashboardIds []int64
OrgId int64
UserId int64
OrgRole RoleType
Result []*DashboardPermissionForUser
}
type GetDashboardsByPluginIdQuery struct {
OrgId int64
PluginId string
@@ -221,3 +229,9 @@ type DashboardFolder struct {
Id int64 `json:"id"`
Title string `json:"title"`
}
type DashboardPermissionForUser struct {
DashboardId int64 `json:"dashboardId"`
Permission PermissionType `json:"permission"`
PermissionName string `json:"permissionName"`
}