Add role selector to invite form and user management
This commit is contained in:
@@ -250,7 +250,7 @@ class ApiClient {
|
||||
await this.fetch(`/admin/users/${id}`, { method: 'DELETE' });
|
||||
}
|
||||
|
||||
async createInvite(data: { email: string; name: string }): Promise<Invite & { setupUrl: string }> {
|
||||
async createInvite(data: { email: string; name: string; role?: 'admin' | 'user' }): Promise<Invite & { setupUrl: string }> {
|
||||
return this.fetch('/admin/invites', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(data),
|
||||
|
||||
Reference in New Issue
Block a user