Mercurial > gemma
comparison schema/demo-data/users.sql @ 268:72062ca52746
Make user_profiles table invisible for users
users.list_users should be the single point to access user profile data.
Keeping user_profiles visible would imply having to maintain RLS policies
that are otherwise obsolete.
Tests run as superuser still use user_profiles, because list_users does
not show any data to a superuser.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 30 Jul 2018 11:38:09 +0200 |
parents | 531d1f8a2b4b |
children | 46a80016293c |
comparison
equal
deleted
inserted
replaced
267:7f030ec3472d | 268:72062ca52746 |
---|---|
3 -- PREREQUISITES: | 3 -- PREREQUISITES: |
4 -- Cluster has roles as created by roles.sql, | 4 -- Cluster has roles as created by roles.sql, |
5 -- responsibility areas from responsibility_areas.sql are imported | 5 -- responsibility areas from responsibility_areas.sql are imported |
6 | 6 |
7 -- Fill in Profiles | 7 -- Fill in Profiles |
8 COPY users.user_profiles (username, country, email_address, map_extent) FROM stdin; | 8 COPY internal.user_profiles (username, country, email_address, map_extent) FROM stdin; |
9 sophie AT sophie@example.com BOX(9.52115482500011 46.3786430870001,17.1483378500001 49.0097744750001) | 9 sophie AT sophie@example.com BOX(9.52115482500011 46.3786430870001,17.1483378500001 49.0097744750001) |
10 lucian RO lucian@example.com BOX(20.2428259690001 43.6500499480001,29.6995548840001 48.2748322560001) | 10 lucian RO lucian@example.com BOX(20.2428259690001 43.6500499480001,29.6995548840001 48.2748322560001) |
11 oana RO oana@example.com BOX(20.2428259690001 43.6500499480001,29.6995548840001 48.2748322560001) | 11 oana RO oana@example.com BOX(20.2428259690001 43.6500499480001,29.6995548840001 48.2748322560001) |
12 penka BG penka@example.com BOX(22.3450232340001 41.238104147,28.6035262380001 44.228434539) | 12 penka BG penka@example.com BOX(22.3450232340001 41.238104147,28.6035262380001 44.228434539) |
13 vanja BG vanja@example.com BOX(22.3450232340001 41.238104147,28.6035262380001 44.228434539) | 13 vanja BG vanja@example.com BOX(22.3450232340001 41.238104147,28.6035262380001 44.228434539) |