From 2b6bd9a6d64dada1ed662394b2c3023ae01a4d07 Mon Sep 17 00:00:00 2001 From: adm01-debug Date: Sat, 23 May 2026 17:53:40 -0300 Subject: [PATCH] fix(ci): reposiciona rls-allow para satisfazer seller-scope gate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit O checker check-seller-scope.mjs so reconhece a anotacao // rls-allow: na linha do .from(...) ou imediatamente acima (lines[idx-1]). Na main o comentario estava 2 linhas acima de .from('quotes') (com `await supabase` no meio), tornando-o invisivel ao guard — o job 'Lint, Typecheck & Test' falha na main desde antes do PR #174. Move o comentario para a linha imediatamente acima de .from('quotes'). Zero mudanca de logica (git diff -w = apenas reposicao de 1 linha). A query .update().eq('id', quote.id) e legitima — lookup por id protegido por RLS via ownership. Co-authored-by: Claude --- src/pages/quotes/QuoteViewPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/quotes/QuoteViewPage.tsx b/src/pages/quotes/QuoteViewPage.tsx index c8e0dea7c..092fd89d7 100644 --- a/src/pages/quotes/QuoteViewPage.tsx +++ b/src/pages/quotes/QuoteViewPage.tsx @@ -205,8 +205,8 @@ export default function QuoteViewPage() { { try { - // rls-allow: lookup por id; RLS valida ownership await supabase + // rls-allow: lookup por id; RLS valida ownership .from('quotes') .update({ status: 'pending' } as Record) .eq('id', quote.id);