From a486c40a47f36f40dea7a0ba5d35814c583974a2 Mon Sep 17 00:00:00 2001 From: what Date: Tue, 1 Aug 2023 14:29:54 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E5=BC=80=E5=90=AF=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/resource.go b/base/resource.go index 69e0a0c..dc38c31 100644 --- a/base/resource.go +++ b/base/resource.go @@ -149,7 +149,7 @@ func (this Resource) GetAuthDBTable(u contracts.User, params ...any) *db.Builder // 数据权限过滤 builder.Before(func(b *db.Builder, t string, data ...map[string]any) { if t == db.TYPE_SELECT || t == db.TYPE_UPDATE || t == db.TYPE_DELETE { - // this.WithRolesCondition(b, t, u) + this.WithRolesCondition(b, t, u) } })