Revert "chore(core): Use roles from database in global roles (#17853)" (#18738)

This commit is contained in:
Andreas Fitzek
2025-08-25 14:29:28 +02:00
committed by GitHub
parent b62c957c71
commit a21a03d4b0
117 changed files with 410 additions and 875 deletions

View File

@@ -4,7 +4,7 @@ import {
testDb,
mockInstance,
} from '@n8n/backend-test-utils';
import { GLOBAL_MEMBER_ROLE, type User } from '@n8n/db';
import type { User } from '@n8n/db';
import { v4 as uuid } from 'uuid';
import validator from 'validator';
@@ -155,7 +155,7 @@ describe('With license unlimited quota:users', () => {
test('should return a pending user', async () => {
const owner = await createOwnerWithApiKey();
const { id: memberId } = await createUserShell(GLOBAL_MEMBER_ROLE);
const { id: memberId } = await createUserShell('global:member');
const authOwnerAgent = testServer.publicApiAgentFor(owner);
const response = await authOwnerAgent.get(`/users/${memberId}`).expect(200);