xtablo-source/sql/31_add_rls_for_tablo_invites.sql
2025-10-28 14:26:24 +01:00

9 lines
276 B
SQL

-- Add RLS policy for tablo_invites table
-- Allow authenticated users to view pending invites they created
CREATE POLICY "Users can view their own pending invites" ON tablo_invites
FOR SELECT USING (
invited_by = auth.uid()
AND is_pending = TRUE
);