🎨 Authorization is no longer required when exporting compressed packages in formats such as markdown https://github.com/siyuan-note/siyuan/issues/12442
This commit is contained in:
parent
47fdeab215
commit
1eb19c1b26
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue