Explorar el Código

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

Marcus Efraimsson hace 6 años
padre
commit
a29b99b96b
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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)