bugfix: 1. 用户管理,用户角色栏文本显示异常;2. 修复非book管理员且非评论作者,但是能删除评论的bug。

This commit is contained in:
Go-Go-Farther
2022-07-19 23:56:42 +08:00
parent 83bca4ac40
commit 1b47f0c372
5 changed files with 14 additions and 14 deletions

View File

@@ -99,8 +99,6 @@ func (c *DocumentController) Index() {
// CheckPassword : Handles password verification for private documents,
// and front-end requests are made through Ajax.
func (c *DocumentController) CheckPassword() {
c.Prepare()
identify := c.Ctx.Input.Param(":key")
password := c.GetString("bPassword")
@@ -133,8 +131,6 @@ func (c *DocumentController) CheckPassword() {
// 阅读文档
func (c *DocumentController) Read() {
c.Prepare()
identify := c.Ctx.Input.Param(":key")
token := c.GetString("token")
id := c.GetString(":id")