From d0fbfbb8e49aa189f49fcde4fb8a7455c1ff7374 Mon Sep 17 00:00:00 2001 From: Copple <10214025+kiwicopple@users.noreply.github.com> Date: Thu, 30 Jun 2022 17:00:31 -0500 Subject: [PATCH] Update web/docs/guides/database/tables.mdx --- web/docs/guides/database/tables.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/docs/guides/database/tables.mdx b/web/docs/guides/database/tables.mdx index a75f7c95965..73d42d612cb 100644 --- a/web/docs/guides/database/tables.mdx +++ b/web/docs/guides/database/tables.mdx @@ -342,7 +342,8 @@ A View is a convenient shortcut to a query. Creating a view does not involve new :::caution -PostgreSQL views do not support Row Level Security. This will be released in PostgreSQL v15. Only expose views to your API if the data is considered public. +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;`. :::