Update web/docs/guides/database/tables.mdx

This commit is contained in:
Copple authored and GitHub committed 2022-07-01 14:37:35 -05:00
1 parent 2bbc98e092
commit 7a4c654ecd
1 file changed
+1 -2
+1 -2
View File
@@ -342,8 +342,7 @@ A View is a convenient shortcut to a query. Creating a view does not involve new
:::caution
PostgreSQL views are called with the privileges of the role that created them. To enable Row Level Security you should change the owner to the "authenticated" role:
`alter view view_name owner to authenticated;`.
By default, PostgreSQL views bypass Row Level Security unless you change their owner (see https://github.com/supabase/supabase/discussions/901). PostgreSQL v15 (coming soon) will have a more intuitive control for this through [security invoker views](https://www.depesz.com/2022/03/22/waiting-for-postgresql-15-add-support-for-security-invoker-views/) and the previous step won't be needed.
:::