修复私有项目无法编辑的BUG

This commit is contained in:
Minho
2017-05-05 11:09:17 +08:00
parent e31561fc7e
commit 3e2d6bdd36
2 changed files with 6 additions and 6 deletions

View File

@@ -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")
}