优化客服云权限安全与访客IP解析
This commit is contained in:
@@ -321,7 +321,7 @@ func (h *CustomerHandler) Update(c *gin.Context) {
|
||||
}
|
||||
|
||||
func (h *CustomerHandler) Delete(c *gin.Context) {
|
||||
if !middleware.HasAnyPermission(c, "customer.export") {
|
||||
if !middleware.HasAnyPermission(c, "customer.delete") {
|
||||
c.JSON(http.StatusForbidden, gin.H{"code": 403, "message": "仅主管或管理员可删除客户"})
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user