diff --git a/packages/plugins/@nocobase/plugin-acl/src/server/server.ts b/packages/plugins/@nocobase/plugin-acl/src/server/server.ts index 6a18cc0d16..e13f8274a5 100644 --- a/packages/plugins/@nocobase/plugin-acl/src/server/server.ts +++ b/packages/plugins/@nocobase/plugin-acl/src/server/server.ts @@ -676,6 +676,14 @@ export class PluginACL extends Plugin { for (const action of inspectActions) { const actionCtx: any = { db: ctx.db, + get: () => { + return undefined; + }, + app: { + getDb() { + return ctx.db; + }, + }, action: { actionName: action, name: action,