Преглед изворни кода

feat(alerting): changing notifications should require org admin

bergquist пре 9 година
родитељ
комит
a18506e2e4
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      pkg/api/api.go

+ 1 - 1
pkg/api/api.go

@@ -261,7 +261,7 @@ func Register(r *macaron.Macaron) {
 				r.Put("/:notificationId", bind(m.UpdateAlertNotificationCommand{}), wrap(UpdateAlertNotification))
 				r.Get("/:notificationId", wrap(GetAlertNotificationById))
 				r.Delete("/:notificationId", wrap(DeleteAlertNotification))
-			})
+			}, reqOrgAdmin)
 
 			//r.Get("/changes", wrap(GetAlertChanges))
 		})