瀏覽代碼

Guard /explore by editor role on the backend

David Kaltschmidt 7 年之前
父節點
當前提交
0c45ee63a9
共有 1 個文件被更改,包括 3 次插入0 次删除
  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)