A full-featured CRM built with React, shadcn/ui, and Supabase.
Fix invitations
React-Admin CIb82310e675e8
diff --git a/supabase/functions/users/index.ts b/supabase/functions/users/index.tsindex 3e65c5a1..8000c474 100644--- a/supabase/functions/users/index.ts+++ b/supabase/functions/users/index.ts@@ -31,7 +31,7 @@ async function inviteUser(req: Request, currentUserSale: any) {const { email, password, first_name, last_name, disabled, administrator } =await req.json();- if (!currentUserSale.data.administrator) {+ if (!currentUserSale.administrator) {return createErrorResponse(401, 'Not Authorized');}