WIP: guardian service for search

Removes restricted dashboards from search result.
This commit is contained in:
Daniel Lee
2017-06-12 15:49:09 +02:00
parent 2e010b920b
commit 3785894b40
9 changed files with 223 additions and 1 deletions
@@ -172,4 +172,8 @@ func addDashboardMigration(mg *Migrator) {
mg.AddMigration("add unique index dashboard_acl_dashboard_id_user_id", NewAddIndexMigration(dashboardAclV1, dashboardAclV1.Indices[1]))
mg.AddMigration("add unique index dashboard_acl_dashboard_id_group_id", NewAddIndexMigration(dashboardAclV1, dashboardAclV1.Indices[2]))
// add column to flag if dashboard has an ACL
mg.AddMigration("Add column has_acl in dashboard", NewAddColumnMigration(dashboardV2, &Column{
Name: "has_acl", Type: DB_Bool, Nullable: false, Default: "0",
}))
}