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) } })