🎨 Add a kernel API /api/system/getWorkspaceInfo https://github.com/siyuan-note/siyuan/issues/13300

This commit is contained in:
Daniel 2024-11-29 10:56:32 +08:00
parent cc629041f9
commit 691290a7be
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 11 additions and 1 deletions

View file

@ -232,7 +232,7 @@ func CheckAuth(c *gin.Context) {
c.Next()
return
}
if strings.HasPrefix(c.Request.RequestURI, "/api/system/getNetwork") {
if strings.HasPrefix(c.Request.RequestURI, "/api/system/getNetwork") || strings.HasPrefix(c.Request.RequestURI, "/api/system/getWorkspaceInfo") {
c.Set(RoleContextKey, RoleAdministrator)
c.Next()
return