mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix: Return scopes on owner setup endpoint (no-changelog) (#7860)
Github issue / Community forum post (link here to close automatically):
This commit is contained in:
@@ -60,6 +60,7 @@ describe('POST /owner/setup', () => {
|
||||
password,
|
||||
isPending,
|
||||
apiKey,
|
||||
globalScopes,
|
||||
} = response.body.data;
|
||||
|
||||
expect(validator.isUUID(id)).toBe(true);
|
||||
@@ -72,6 +73,7 @@ describe('POST /owner/setup', () => {
|
||||
expect(globalRole.name).toBe('owner');
|
||||
expect(globalRole.scope).toBe('global');
|
||||
expect(apiKey).toBeUndefined();
|
||||
expect(globalScopes).not.toHaveLength(0);
|
||||
|
||||
const storedOwner = await Container.get(UserRepository).findOneByOrFail({ id });
|
||||
expect(storedOwner.password).not.toBe(newOwnerData.password);
|
||||
|
||||
Reference in New Issue
Block a user