PublicDashboards: add recipients to the public dashboards retrieval (#63149)

This commit is contained in:
Ezequiel Victorero
2023-02-10 15:01:26 -03:00
committed by GitHub
parent 91dd5b0e0d
commit 8520a8614c
11 changed files with 134 additions and 23 deletions
@@ -324,8 +324,9 @@ func TestIntegrationUnauthenticatedUserCanGetPubdashPanelQueryData(t *testing.T)
store := publicdashboardsStore.ProvideStore(db)
cfg := setting.NewCfg()
ac := acmock.New()
ws := &publicdashboards.FakePublicDashboardServiceWrapper{}
cfg.RBACEnabled = false
service := publicdashboardsService.ProvideService(cfg, store, qds, annotationsService, ac)
service := publicdashboardsService.ProvideService(cfg, store, qds, annotationsService, ac, ws)
pubdash, err := service.Create(context.Background(), &user.SignedInUser{}, savePubDashboardCmd)
require.NoError(t, err)