CDB-3133 Proper value check of only_shared and exclude_shared, not just presence
Merge branch 'CDB-3133' of https://github.com/CartoDB/cartodb into CDB-3133