-
-
Save horizon0708/2e31152c0e0ce18e1b50215b9dee7330 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alter table profiles enable row level security; | |
create policy "Public profiles are viewable by everyone." | |
on profiles for select | |
using ( true ); | |
create policy "Users can insert their own profile." | |
on profiles for insert | |
with check ( auth.uid() = id ); | |
create policy "Users can update own profile." | |
on profiles for update | |
using ( auth.uid() = id ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment