mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-02-27 17:03:57 +08:00
bugfix: 1. 用户管理,用户角色栏文本显示异常;2. 修复非book管理员且非评论作者,但是能删除评论的bug。
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user