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

pull/15761/head
Marcus Efraimsson 7 years ago
parent 1312789d1d
commit a29b99b96b
No known key found for this signature in database
GPG Key ID: EBFE0FB04612DD4A
  1. 4
      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)

Loading…
Cancel
Save