n8n
Version:
n8n Workflow Automation Tool
9 lines (8 loc) • 353 B
TypeScript
import type { User } from '@n8n/db';
import { type Scope } from '@n8n/permissions';
export declare function userHasScopes(user: User, scopes: Scope[], globalOnly: boolean, { credentialId, workflowId, projectId, dataTableId, }: {
credentialId?: string;
workflowId?: string;
projectId?: string;
dataTableId?: string;
}): Promise<boolean>;