From 06a17b6bc649daeada37e13d737816cd3d677640 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 12 Sep 2009 16:46:25 +0000 Subject: [PATCH] Treat an explicit public=0 argument as meaning private. --- app/controllers/trace_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.39.5