Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Authorization is no longer required when exporting compressed packages in formats such as markdown https://github.com/siyuan-note/siyuan/issues/12442

Daniel1eb19c1b2609
diff --git a/kernel/model/session.go b/kernel/model/session.go
index c8a11803f7..ef0d424402 100644
--- a/kernel/model/session.go
+++ b/kernel/model/session.go
@@ -217,7 +217,7 @@ func CheckAuth(c *gin.Context) {
// 放过来自本机的某些请求
if localhost {
- if strings.HasPrefix(c.Request.RequestURI, "/assets/") {
+ if strings.HasPrefix(c.Request.RequestURI, "/assets/") || strings.HasPrefix(c.Request.RequestURI, "/export/") {
c.Set(RoleContextKey, RoleAdministrator)
c.Next()
return