feat: 增加首页项目拖拽排序增加只能管理员进行, 排序失败元素回到原本位置

This commit is contained in:
zhanzhenping
2024-07-03 09:31:45 +08:00
parent 34ce2b3c1b
commit 38c15ae91e
2 changed files with 20 additions and 2 deletions

View File

@@ -775,6 +775,10 @@ func (c *BookController) Release() {
// 更新项目排序
func (c *BookController) UpdateBookOrder() {
if !c.Member.IsAdministrator() {
c.JsonResult(403, "权限不足")
return
}
type Params struct {
Ids string `form:"ids"`
}