An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:lock: https://github.com/siyuan-note/siyuan/security/advisories/GHSA-xmw9-6r43-x9ww
Daniel710548dc68f3
diff --git a/kernel/api/router.go b/kernel/api/router.goindex b91152c805..965d68d560 100644--- a/kernel/api/router.go+++ b/kernel/api/router.go@@ -254,7 +254,7 @@ func ServeAPI(ginServer *gin.Engine) {ginServer.Handle("POST", "/api/file/globalCopyFiles", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, globalCopyFiles)ginServer.Handle("POST", "/api/file/removeFile", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeFile)ginServer.Handle("POST", "/api/file/renameFile", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, renameFile)- ginServer.Handle("POST", "/api/file/readDir", model.CheckAuth, readDir)+ ginServer.Handle("POST", "/api/file/readDir", model.CheckAuth, model.CheckAdminRole, readDir)ginServer.Handle("POST", "/api/file/getUniqueFilename", model.CheckAuth, getUniqueFilename)ginServer.Handle("POST", "/api/ref/refreshBacklink", model.CheckAuth, refreshBacklink)