From: Tom Hughes Date: Sat, 12 Sep 2009 16:46:25 +0000 (+0000) Subject: Treat an explicit public=0 argument as meaning private. X-Git-Tag: live~7228 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/06a17b6bc649daeada37e13d737816cd3d677640 Treat an explicit public=0 argument as meaning private. --- diff --git a/app/controllers/trace_controller.rb b/app/controllers/trace_controller.rb index 51e7f9b83..b29b6dde1 100644 --- a/app/controllers/trace_controller.rb +++ b/app/controllers/trace_controller.rb @@ -296,7 +296,7 @@ class TraceController < ApplicationController visibility = params[:visibility] if visibility.nil? - if params[:public] + if params[:public] && params[:public].to_i.nonzero? visibility = "public" else visibility = "private"