feat(editor): Add routing middleware, permission checks, RBAC store, RBAC component (#7702)
Github issue / Community forum post (link here to close automatically): --------- Co-authored-by: Csaba Tuncsik <csaba@n8n.io>
This commit is contained in:
12
packages/editor-ui/src/hooks/register.ts
Normal file
12
packages/editor-ui/src/hooks/register.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { extendExternalHooks } from '@/mixins/externalHooks';
|
||||
|
||||
let cloudHooksInitialized = false;
|
||||
export async function initializeCloudHooks() {
|
||||
if (cloudHooksInitialized) {
|
||||
return;
|
||||
}
|
||||
|
||||
const { n8nCloudHooks } = await import('@/hooks/cloud');
|
||||
extendExternalHooks(n8nCloudHooks);
|
||||
cloudHooksInitialized = true;
|
||||
}
|
||||
Reference in New Issue
Block a user