فهرست منبع

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))
 		})