mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 20:35:07 +03:00
Update web/docs/guides/database/tables.mdx
This commit is contained in:
1 parent
2bbc98e092
commit
7a4c654ecd
1 file changed
+1
-2
@@ -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.
|
||||
|
||||
:::
|
||||
|
||||
|
||||
Reference in new issue
Block a user