mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 07:48:49 +01:00
🔒 内核接口 api/system/getConf 脱敏处理 Fix https://github.com/siyuan-note/siyuan/issues/6088
This commit is contained in:
parent
27ee08ac0f
commit
4092043404
1 changed files with 5 additions and 0 deletions
|
|
@ -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/") ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue