mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-18 17:48:00 +08:00
修复私有项目无法编辑的BUG
This commit is contained in:
@@ -51,7 +51,7 @@ func isReadable (identify,token string,c *DocumentController) *models.BookResult
|
||||
} else if token, ok := c.GetSession(identify).(string); !ok || !strings.EqualFold(token, book.PrivateToken) {
|
||||
c.Abort("403")
|
||||
}
|
||||
} else {
|
||||
} else if !is_ok {
|
||||
c.Abort("403")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user