Skip to content

Commit 939bd69

Browse files
committed
fix: prisma capability guard for plugins
1 parent f3520b4 commit 939bd69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform/src/ext-host/capabilities.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function getPrismaForPlugin(plugin, config = {}) {
5757
name: `plugin-guard:${namespace}`,
5858
query: {
5959
$allModels: {
60-
async $allOperations({ model }, next) {
60+
async $allOperations({ model, args, query }) {
6161
if (SENSITIVE_MODELS.has(model)) {
6262
throw new PluginCapabilityError(
6363
`Plugin "${namespace}" is not allowed to access model "${model}"`,
@@ -68,7 +68,7 @@ function getPrismaForPlugin(plugin, config = {}) {
6868
}
6969
);
7070
}
71-
return next();
71+
return query(args);
7272
},
7373
},
7474
},

0 commit comments

Comments
 (0)