9 lines
276 B
SQL
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
|
|
);
|
|
|
|
|