From 62aeded28a634a6b3322a77e5884878b0fdf9374 Mon Sep 17 00:00:00 2001 From: liuzx Date: Wed, 24 Aug 2022 14:36:57 +0800 Subject: [PATCH] fix-2744 --- routers/routes/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/routes/routes.go b/routers/routes/routes.go index 41d34b937..c2b65e7dc 100755 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -1184,7 +1184,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Get("", reqRepoCloudBrainReader, repo.NotebookShow) m.Get("/debug", cloudbrain.AdminOrJobCreaterRight, repo.NotebookDebug2) m.Post("/restart", cloudbrain.AdminOrJobCreaterRight, repo.NotebookRestart) - m.Post("/stop", cloudbrain.AdminOrJobCreaterRight, repo.NotebookStop) + m.Post("/stop", cloudbrain.AdminOrOwnerOrJobCreaterRight, repo.NotebookStop) m.Post("/del", cloudbrain.AdminOrOwnerOrJobCreaterRight, repo.NotebookDel) }) m.Get("/create", reqWechatBind, reqRepoCloudBrainWriter, repo.NotebookNew)