Skip to content

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

:art: Improve auth

Daniel94c70ae6381f
diff --git a/kernel/model/session.go b/kernel/model/session.go
index 8edc7c24ad..ef3bc103ac 100644
--- a/kernel/model/session.go
+++ b/kernel/model/session.go
@@ -274,8 +274,10 @@ func CheckAuth(c *gin.Context) {
return
}
- // 放过静态资源请求
- if strings.HasPrefix(c.Request.RequestURI, "/appearance/") || strings.HasPrefix(c.Request.RequestURI, "/stage/") {
+ // 放过 /appearance/
+ if strings.HasPrefix(c.Request.RequestURI, "/appearance/") ||
+ strings.HasPrefix(c.Request.RequestURI, "/stage/build/export/") ||
+ strings.HasPrefix(c.Request.RequestURI, "/stage/protyle/") {
c.Next()
return
}