This commit is contained in:
2025-10-14 23:27:54 +02:00
parent 94b69bb041
commit 6961caa2af
6 changed files with 65 additions and 11 deletions

View File

@@ -17,7 +17,20 @@ create role adherent nologin;
grant anonyme to postgrest;
grant adherent to postgrest;
grant usage on schema public to anonyme;
grant usage
on schema public
to anonyme;
alter default privileges in schema public
grant select on tables to anonyme;
-- Pour toutes les tables du schéma public
grant select
on all tables
in schema public
to anonyme;
-- Privilège par défaut pour que chaque nouvelle table créée dans public
-- donnera automatiquement le droit SELECT à anonyme.
alter default privileges
in schema public
grant select
on tables
to anonyme;