Skip to content

Commit 08e6e7e

Browse files
committed
policies for user profiles
1 parent 30b9078 commit 08e6e7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

example/next-storage/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ create table public.profiles (
1313
full_name text,
1414
avatar_url text
1515
);
16-
alter table users enable row level security;
17-
create policy "Public profiles are viewable by everyone." on users for select using (true);
18-
create policy "Individuals update own user data." on users for update using (auth.uid() = id);
16+
alter table profiles enable row level security;
17+
create policy "Public profiles are viewable by everyone." on profiles for select using (true);
18+
create policy "Individuals update own user data." on profiles for update using (auth.uid() = id);
1919
```

0 commit comments

Comments
 (0)