mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Add a kernel API /api/system/getWorkspaceInfo https://github.com/siyuan-note/siyuan/issues/13300
This commit is contained in:
parent
cc629041f9
commit
691290a7be
3 changed files with 11 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue