Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions supabase/migrations/20240414161947_basejump-accounts.sql
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ create policy "users can view their own account_users" on basejump.account_user
for select
to authenticated
using (
user_id = auth.uid()
user_id = (select auth.uid())
);

create policy "users can view their teammates" on basejump.account_user
Expand Down Expand Up @@ -337,7 +337,7 @@ create policy "Accounts are viewable by primary owner" on basejump.accounts
for select
to authenticated
using (
primary_owner_user_id = auth.uid()
primary_owner_user_id = (select auth.uid())
);

create policy "Team accounts can be created by any user" on basejump.accounts
Expand Down