Run PostgREST with zero config. Related to https://github.com/PostgREST/postgrest/pull/2112

This commit is contained in:
Wolfgang Walther
2022-01-24 10:24:39 +01:00
committed by Wolfgang Walther
parent 5187eadd0b
commit 5f938dbe1a
4 changed files with 58 additions and 45 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ You can use row-level security to flexibly restrict visibility and access for th
ALTER TABLE chat ENABLE ROW LEVEL SECURITY;
We want to enforce a policy that ensures a user can see only those messages sent by him or intended for him. Also we want to prevent a user from forging the message_from column with another person's name.
We want to enforce a policy that ensures a user can see only those messages sent by them or intended for them. Also we want to prevent a user from forging the message_from column with another person's name.
PostgreSQL allows us to set this policy with row-level security: