Revert "Fix fix_permissions for users with a different schema"

This reverts commit aecc66d316.
Custom publicusers inherit from publicuser so this is not needed.
pull/609/head
Alejandro 10 years ago
parent aecc66d316
commit a04ca5148e

@ -1662,7 +1662,7 @@ TRIGGER
tables_queries = []
tables.each do |table|
if table.public?
tables_queries << "GRANT SELECT ON \"#{self.database_schema}\".#{table.name} TO \"#{database_public_user}\""
tables_queries << "GRANT SELECT ON \"#{self.database_schema}\".#{table.name} TO #{CartoDB::PUBLIC_DB_USER}"
end
tables_queries << "ALTER TABLE \"#{self.database_schema}\".#{table.name} OWNER TO \"#{database_username}\""
end

Loading…
Cancel
Save