Skip to content

Commit

Permalink
修复不正确限制技能关联题集的权限 BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
flycash committed Aug 18, 2024
1 parent 445a466 commit ca35d52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/skill/internal/web/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ func NewHandler(svc service.SkillService,

func (h *Handler) PrivateRoutes(server *gin.Engine) {
server.POST("/skill/list", ginx.B[Page](h.List))
server.POST("/skill/detail-refs", ginx.S(h.Permission), ginx.B[Sid](h.DetailRefs))
server.POST("/skill/detail-refs", ginx.B[Sid](h.DetailRefs))
server.POST("/skill/save", ginx.S(h.Permission), ginx.B[SaveReq](h.Save))
server.POST("/skill/save-refs", ginx.S(h.Permission), ginx.B(h.SaveRefs))
server.POST("/skill/level-refs", ginx.S(h.Permission), ginx.BS(h.RefsByLevelIDs))
server.POST("/skill/level-refs", ginx.BS(h.RefsByLevelIDs))
}

func (h *Handler) PublicRoutes(server *gin.Engine) {
Expand Down

0 comments on commit ca35d52

Please sign in to comment.