dashfolders: allows phantomjs rendering for alerting

Makes the alerting user an admin when rendering a png
for emails
This commit is contained in:
Daniel Lee
2017-06-22 02:43:33 +02:00
parent 691ff32ae9
commit 446104d120
2 changed files with 19 additions and 13 deletions
+5 -4
View File
@@ -79,10 +79,11 @@ func (n *notificationService) uploadImage(context *EvalContext) (err error) {
}
renderOpts := &renderer.RenderOpts{
Width: "800",
Height: "400",
Timeout: "30",
OrgId: context.Rule.OrgId,
Width: "800",
Height: "400",
Timeout: "30",
OrgId: context.Rule.OrgId,
IsAlertContext: true,
}
if slug, err := context.GetDashboardSlug(); err != nil {