mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
feat(core): Rebuild project roles to load from the database (#17909)
This commit is contained in:
committed by
GitHub
parent
ab7998b441
commit
f757790394
@@ -61,7 +61,7 @@ describe('ProjectService', () => {
|
||||
expect(relations[0]).toMatchObject({
|
||||
projectId: project.id,
|
||||
userId: user.id,
|
||||
role: 'project:admin',
|
||||
role: { slug: 'project:admin' },
|
||||
});
|
||||
});
|
||||
|
||||
@@ -82,7 +82,7 @@ describe('ProjectService', () => {
|
||||
expect(relations[0]).toMatchObject({
|
||||
projectId: project.id,
|
||||
userId: user.id,
|
||||
role: 'project:editor',
|
||||
role: { slug: 'project:editor' },
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -103,7 +103,7 @@ describe('ProjectService', () => {
|
||||
expect(relations[0]).toMatchObject({
|
||||
projectId: project.id,
|
||||
userId: user.id,
|
||||
role: 'project:admin',
|
||||
role: { slug: 'project:admin' },
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user