From fa3e3c8edfff4b07f6ffef1fe8b0d80dd30e686a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ramiro=20Nu=C3=B1ez=20Dosio?= Date: Tue, 8 Nov 2022 15:18:09 +0000 Subject: [PATCH] Update apps/www/_blog/2022-11-08-authentication-in-ionic-angular.mdx Co-authored-by: Stojan Dimitrovski --- apps/www/_blog/2022-11-08-authentication-in-ionic-angular.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/www/_blog/2022-11-08-authentication-in-ionic-angular.mdx b/apps/www/_blog/2022-11-08-authentication-in-ionic-angular.mdx index 2d391f7427f..081a1d569f5 100644 --- a/apps/www/_blog/2022-11-08-authentication-in-ionic-angular.mdx +++ b/apps/www/_blog/2022-11-08-authentication-in-ionic-angular.mdx @@ -117,10 +117,10 @@ create policy "The owner can delete a group." on groups for -- Message Policies create policy "Authenticated users can read messages." on messages - for select using (auth.role() = 'authenticated'); + for select to authenticated using (true); create policy "Authenticated users can create messages." on messages - for insert with check (auth.role() = 'authenticated'); + for insert to authenticated with check (true); ``` Now we also add a cool function that will automatically add user data after registration into our table. This is necessary if you want to keep track of some user information, because the Supabase auth table is an internal table that we can't access that easily.