Treat an explicit public=0 argument as meaning private.
This commit is contained in:
parent
244af65b2b
commit
06a17b6bc6
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue