Browse Source

feat(alerting): changing notifications should require org admin

bergquist 9 years ago
parent
commit
a18506e2e4
1 changed files with 1 additions and 1 deletions
  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.Put("/:notificationId", bind(m.UpdateAlertNotificationCommand{}), wrap(UpdateAlertNotification))
 				r.Get("/:notificationId", wrap(GetAlertNotificationById))
 				r.Get("/:notificationId", wrap(GetAlertNotificationById))
 				r.Delete("/:notificationId", wrap(DeleteAlertNotification))
 				r.Delete("/:notificationId", wrap(DeleteAlertNotification))
-			})
+			}, reqOrgAdmin)
 
 
 			//r.Get("/changes", wrap(GetAlertChanges))
 			//r.Get("/changes", wrap(GetAlertChanges))
 		})
 		})