We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3520b4 commit 939bd69Copy full SHA for 939bd69
platform/src/ext-host/capabilities.js
@@ -57,7 +57,7 @@ function getPrismaForPlugin(plugin, config = {}) {
57
name: `plugin-guard:${namespace}`,
58
query: {
59
$allModels: {
60
- async $allOperations({ model }, next) {
+ async $allOperations({ model, args, query }) {
61
if (SENSITIVE_MODELS.has(model)) {
62
throw new PluginCapabilityError(
63
`Plugin "${namespace}" is not allowed to access model "${model}"`,
@@ -68,7 +68,7 @@ function getPrismaForPlugin(plugin, config = {}) {
68
}
69
);
70
71
- return next();
+ return query(args);
72
},
73
74
0 commit comments