mirror of https://gitee.com/answerdev/answer.git
update short id
This commit is contained in:
parent
6a1ae9140f
commit
c4780fa3e5
|
@ -110,6 +110,7 @@ func (ac *AnswerController) Add(ctx *gin.Context) {
|
||||||
if handler.BindAndCheck(ctx, req) {
|
if handler.BindAndCheck(ctx, req) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
req.QuestionID = uid.DeShortID(req.QuestionID)
|
||||||
req.UserID = middleware.GetLoginUserIDFromContext(ctx)
|
req.UserID = middleware.GetLoginUserIDFromContext(ctx)
|
||||||
|
|
||||||
can, err := ac.rankService.CheckOperationPermission(ctx, req.UserID, permission.AnswerAdd, "")
|
can, err := ac.rankService.CheckOperationPermission(ctx, req.UserID, permission.AnswerAdd, "")
|
||||||
|
|
Loading…
Reference in New Issue