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