dashboard and folder search with permissions
This commit is contained in:
@@ -21,6 +21,7 @@ func searchHandler(query *Query) error {
|
||||
FolderIds: query.FolderIds,
|
||||
Tags: query.Tags,
|
||||
Limit: query.Limit,
|
||||
Permission: query.Permission,
|
||||
}
|
||||
|
||||
if err := bus.Dispatch(&dashQuery); err != nil {
|
||||
|
||||
@@ -52,6 +52,7 @@ type Query struct {
|
||||
Type string
|
||||
DashboardIds []int64
|
||||
FolderIds []int64
|
||||
Permission models.PermissionType
|
||||
|
||||
Result HitList
|
||||
}
|
||||
@@ -66,7 +67,7 @@ type FindPersistedDashboardsQuery struct {
|
||||
FolderIds []int64
|
||||
Tags []string
|
||||
Limit int
|
||||
IsBrowse bool
|
||||
Permission models.PermissionType
|
||||
|
||||
Result HitList
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user