Do not grant select permission to public user

- Fake the behaviour in tests by switching between users
This commit is contained in:
Raul Ochoa
2015-02-10 15:27:42 +01:00
parent ee8a031ea0
commit 3cf62ecd2e
3 changed files with 28 additions and 6 deletions

View File

@@ -5,9 +5,9 @@ CREATE TABLE IF NOT EXISTS
updated_at timestamp with time zone not null default now()
);
-- Anyone can see this, but updates are only possible trough
-- the security definer trigger
GRANT SELECT ON public.CDB_TableMetadata TO public;
-- No one can see this
-- Updates are only possible trough the security definer trigger
-- GRANT SELECT ON public.CDB_TableMetadata TO public;
--
-- Trigger logging updated_at in the CDB_TableMetadata