Procházet zdrojové kódy

only editor/admin should have access to alert list/notifications pages

Marcus Efraimsson před 6 roky
rodič
revize
a29b99b96b
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      pkg/api/api.go

+ 2 - 2
pkg/api/api.go

@@ -77,8 +77,8 @@ func (hs *HTTPServer) registerRoutes() {
 
 	r.Get("/playlists/", reqSignedIn, hs.Index)
 	r.Get("/playlists/*", reqSignedIn, hs.Index)
-	r.Get("/alerting/", reqSignedIn, hs.Index)
-	r.Get("/alerting/*", reqSignedIn, hs.Index)
+	r.Get("/alerting/", reqEditorRole, hs.Index)
+	r.Get("/alerting/*", reqEditorRole, hs.Index)
 
 	// sign up
 	r.Get("/signup", hs.Index)