Files
classroomio/supabase/migrations/20251205045311_modify_profile_policy.sql
T

11 lines
319 B
SQL

drop policy if exists "Public profiles are viewable by everyone." on "public"."profile";
drop policy if exists "Only auth users can read profile" on "public"."profile";
create policy "You can only view your own profile"
on "public"."profile"
as permissive
for select
to authenticated, anon
using ((auth.uid() = id));