mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat(API): Add user management endpoints to the Projects Public API (#12329)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in> Co-authored-by: Danny Martini <danny@n8n.io> Co-authored-by: Andreas Fitzek <andreas.fitzek@n8n.io> Co-authored-by: Guillaume Jacquart <jacquart.guillaume@gmail.com>
This commit is contained in:
@@ -231,7 +231,7 @@ describe('GET /credentials', () => {
|
||||
// ARRANGE
|
||||
//
|
||||
const project1 = await projectService.createTeamProject(member, { name: 'Team Project' });
|
||||
await projectService.addUser(project1.id, anotherMember.id, 'project:editor');
|
||||
await projectService.addUser(project1.id, { userId: anotherMember.id, role: 'project:editor' });
|
||||
// anotherMember should see this one
|
||||
const credential1 = await saveCredential(randomCredentialPayload(), { project: project1 });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user