Do not assume existance of a "publicuser" role in CDB_UserTables

Closes #5 (take 2)
This commit is contained in:
Sandro Santilli
2014-05-08 16:42:38 +02:00
parent 1c753b24e5
commit 055efe04aa
+1 -1
View File
@@ -22,7 +22,7 @@ AS $$
'spatial_ref_sys' 'spatial_ref_sys'
) )
), perms AS ( ), 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 FROM usertables
) )
SELECT t FROM perms SELECT t FROM perms