n8n
Version:
n8n Workflow Automation Tool
8 lines (7 loc) • 369 B
TypeScript
import type { User } from '../databases/entities/User';
import type { Scope } from '@n8n/permissions';
export declare const userHasScope: (user: User, scopes: Scope[], globalOnly: boolean, { credentialId, workflowId, projectId, }: {
credentialId?: string | undefined;
workflowId?: string | undefined;
projectId?: string | undefined;
}) => Promise<boolean>;