attribute correctly. Closes #2242.
if request.post?
tags = params[:tags] || ""
description = params[:description] || ""
- visibility = params[:visibility] || false
+ visibility = params[:visibility]
- if params[:public] && !visibility
- visibility = "public"
+ if visibility.nil?
+ if params[:public]
+ visibility = "public"
+ else
+ visibility = "private"
+ end
end
-
+
if params[:file].respond_to?(:read)
do_create(params[:file], tags, description, visibility)