We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ae10f38 + 9b5f589 commit ef4d639Copy full SHA for ef4d639
1 file changed
packages/foundation/plugin-security/src/plugin.ts
@@ -174,6 +174,8 @@ export class ObjectQLSecurityPlugin implements RuntimePlugin {
174
const registerHook = (name: string, handler: any) => {
175
if (typeof ctx.hook === 'function') {
176
ctx.hook(name, handler);
177
+ } else if (typeof (kernel as any).use === 'function') {
178
+ (kernel as any).use(name, handler);
179
} else if (typeof (kernel as any).hooks?.register === 'function') {
180
(kernel as any).hooks.register(name, handler);
181
} else {
0 commit comments