Stick with user tables being in public
... but workaround extension code replacing "public." with "cartodb."
This commit is contained in:
@@ -22,7 +22,7 @@ AS $$
|
|||||||
'spatial_ref_sys'
|
'spatial_ref_sys'
|
||||||
)
|
)
|
||||||
), perms AS (
|
), perms AS (
|
||||||
SELECT t, has_table_privilege('publicuser', t, 'SELECT') as p
|
SELECT t, has_table_privilege('publicuser', 'public'||'.'||t, 'SELECT') as p
|
||||||
FROM usertables
|
FROM usertables
|
||||||
)
|
)
|
||||||
SELECT t FROM perms
|
SELECT t FROM perms
|
||||||
|
|||||||
Reference in New Issue
Block a user