Skip to content

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

:lock: 内核接口 `api/system/getConf` 脱敏处理 Fix https://github.com/siyuan-note/siyuan/issues/6088

Liang Ding409204340421
diff --git a/kernel/model/session.go b/kernel/model/session.go
index a32ceb41c0..c665478215 100644
--- a/kernel/model/session.go
+++ b/kernel/model/session.go
@@ -156,6 +156,11 @@ func CheckReadonly(c *gin.Context) {
func CheckAuth(c *gin.Context) {
//logging.LogInfof("check auth for [%s]", c.Request.RequestURI)
+ if "" == Conf.AccessAuthCode {
+ c.Next()
+ return
+ }
+
// 放过 /appearance/
if strings.HasPrefix(c.Request.RequestURI, "/appearance/") ||
strings.HasPrefix(c.Request.RequestURI, "/stage/build/export/") ||