From 1eb19c1b260981c2dbfb9970894cbcf350f6facc Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Wed, 11 Sep 2024 22:30:47 +0800 Subject: [PATCH] :art: Authorization is no longer required when exporting compressed packages in formats such as markdown https://github.com/siyuan-note/siyuan/issues/12442 --- kernel/model/session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/session.go b/kernel/model/session.go index c8a11803f..ef0d42440 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