Browse Source

Guard /explore by editor role on the backend

David Kaltschmidt 7 năm trước cách đây
mục cha
commit
0c45ee63a9
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      pkg/api/api.go

+ 3 - 0
pkg/api/api.go

@@ -77,6 +77,9 @@ func (hs *HTTPServer) registerRoutes() {
 	r.Get("/dashboards/", reqSignedIn, Index)
 	r.Get("/dashboards/*", reqSignedIn, Index)
 
+	r.Get("/explore/", reqEditorRole, Index)
+	r.Get("/explore/*", reqEditorRole, Index)
+
 	r.Get("/playlists/", reqSignedIn, Index)
 	r.Get("/playlists/*", reqSignedIn, Index)
 	r.Get("/alerting/", reqSignedIn, Index)