alerting: show alerts for user with Viewer role

changelog: add notes about closing #11167

remove changelog note

reformat alert_test.go
This commit is contained in:
Alexander Zobnin
2018-06-04 12:34:30 +03:00
parent f5cf926364
commit 13c6f37ea5
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ func HandleAlertsQuery(query *m.GetAlertsQuery) error {
}
if query.User.OrgRole != m.ROLE_ADMIN {
builder.writeDashboardPermissionFilter(query.User, m.PERMISSION_EDIT)
builder.writeDashboardPermissionFilter(query.User, m.PERMISSION_VIEW)
}
builder.Write(" ORDER BY name ASC")