@davoodmehraban89 / Factor-easy / commits / f010e2c
Fork 0

سامانه صدور فاکتور و حسابداری

fix(stage1): grant authenticated access to pure role-guard field projector

davoodmehraban89 committed Oct 17, 2026 at 10:42 UTC f010e2c32557b239feb72a225749ed25c7b2806b
1 file changed +2
supabase/migrations/20261016102500_phase1a_account_role_protection.sql
+2
@@ -242,4 +242,6 @@ GRANT EXECUTE ON FUNCTION public.finora_phase1a_publish_role_assignments(uuid,te
242 REVOKE ALL ON FUNCTION private.finora_phase1a_role_immutable() FROM PUBLIC,anon,authenticated;
243 REVOKE ALL ON FUNCTION private.finora_phase1a_guard_account_mapping_sync() FROM PUBLIC,anon,authenticated;
244 REVOKE ALL ON FUNCTION private.finora_phase1a_account_fields(jsonb) FROM PUBLIC,anon;
245 +-- Pure immutable JSON projector used by SECURITY INVOKER sync guard.
246 +GRANT EXECUTE ON FUNCTION private.finora_phase1a_account_fields(jsonb) TO authenticated;
247 REVOKE ALL ON FUNCTION private.finora_phase1a_check_role_account(uuid,text,text,text) FROM PUBLIC,anon,authenticated;