Alerting: enforce roles on frontend (#33997)

This commit is contained in:
Domas
2021-05-17 11:15:17 +03:00
committed by GitHub
parent a26507e9c4
commit 8a0dbd0127
21 changed files with 281 additions and 125 deletions

View File

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