Do not assume existance of a "publicuser" role in CDB_UserTables
Closes #5 (take 2)
This commit is contained in:
@@ -22,7 +22,7 @@ AS $$
|
||||
'spatial_ref_sys'
|
||||
)
|
||||
), perms AS (
|
||||
SELECT t, has_table_privilege('publicuser', 'public'||'.'||t, 'SELECT') as p
|
||||
SELECT t, has_table_privilege('public', 'public'||'.'||t, 'SELECT') as p
|
||||
FROM usertables
|
||||
)
|
||||
SELECT t FROM perms
|
||||
|
||||
Reference in New Issue
Block a user