mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat: Support create, read, delete variables in Public API (#10241)
This commit is contained in:
@@ -78,7 +78,11 @@ export async function createUserWithMfaEnabled(
|
||||
};
|
||||
}
|
||||
|
||||
export async function createOwner() {
|
||||
export async function createOwner({ withApiKey } = { withApiKey: false }) {
|
||||
if (withApiKey) {
|
||||
return await addApiKey(await createUser({ role: 'global:owner' }));
|
||||
}
|
||||
|
||||
return await createUser({ role: 'global:owner' });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user