Prechádzať zdrojové kódy

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

Marcus Efraimsson 6 rokov pred
rodič
commit
a29b99b96b
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  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)