feat(core): Support create, read, update, delete projects in Public API (#10269)
This commit is contained in:
@@ -86,7 +86,11 @@ export async function createOwner({ withApiKey } = { withApiKey: false }) {
|
||||
return await createUser({ role: 'global:owner' });
|
||||
}
|
||||
|
||||
export async function createMember() {
|
||||
export async function createMember({ withApiKey } = { withApiKey: false }) {
|
||||
if (withApiKey) {
|
||||
return await addApiKey(await createUser({ role: 'global:member' }));
|
||||
}
|
||||
|
||||
return await createUser({ role: 'global:member' });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user