From b646ce9335214c70c210a21357f5492ddf675901 Mon Sep 17 00:00:00 2001 From: linwenxiang <991154416@qq.com> Date: Sun, 30 Aug 2020 00:22:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8actions=E4=B8=AD=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/actions/index.go | 1 + 1 file changed, 1 insertion(+) diff --git a/apis/actions/index.go b/apis/actions/index.go index 637744e..bd0853e 100644 --- a/apis/actions/index.go +++ b/apis/actions/index.go @@ -34,6 +34,7 @@ func IndexAction(m model.ActiveRecord, d dto.Dtor) gin.HandlerFunc { err = req.Validate() tools.HasError(err, "参数验证失败", 422) p, err := newDataPermission(db, tools.GetUserId(c)) + tools.HasError(err, "权限范围鉴定错误", 500) err = db.WithContext(c).Model(object). Scopes( tools.MakeCondition(req.GetNeedSearch()),