Index: config/settings.yml
===================================================================
--- config/settings.yml	(revision 1229)
+++ config/settings.yml	(working copy)
@@ -103,6 +103,8 @@
   - updated_on
 display_subprojects_issues:
   default: 1
+projects_public:
+  default: 1
 # encodings used to convert repository files content to UTF-8
 # multiple values accepted, comma separated
 repositories_encodings:
@@ -113,4 +115,4 @@
   default: |-
     You have received this notification because you have either subscribed to it, or are involved in it.
     To change your notification preferences, please click here: http://hostname/my/account
-  
\ No newline at end of file
+  
Index: app/controllers/projects_controller.rb
===================================================================
--- app/controllers/projects_controller.rb	(revision 1229)
+++ app/controllers/projects_controller.rb	(working copy)
@@ -70,6 +70,7 @@
     if request.get?
       @custom_values = ProjectCustomField.find(:all, :order => "#{CustomField.table_name}.position").collect { |x| CustomValue.new(:custom_field => x, :customized => @project) }
       @project.trackers = Tracker.all
+      @project.is_public = Setting.projects_public
     else
       @project.custom_fields = CustomField.find(params[:custom_field_ids]) if params[:custom_field_ids]
       @custom_values = ProjectCustomField.find(:all, :order => "#{CustomField.table_name}.position").collect { |x| CustomValue.new(:custom_field => x, :customized => @project, :value => (params[:custom_fields] ? params["custom_fields"][x.id.to_s] : nil)) }
@@ -78,7 +79,7 @@
         @project.enabled_module_names = params[:enabled_modules]
         flash[:notice] = l(:notice_successful_create)
         redirect_to :controller => 'admin', :action => 'projects'
-	  end		
+	    end		
     end	
   end
 	
Index: app/views/settings/_general.rhtml
===================================================================
--- app/views/settings/_general.rhtml	(revision 1229)
+++ app/views/settings/_general.rhtml	(working copy)
@@ -46,6 +46,10 @@
 
 <p><label><%= l(:setting_feeds_limit) %></label>
 <%= text_field_tag 'settings[feeds_limit]', Setting.feeds_limit, :size => 6 %></p>
+
+<p><label><%= l(:setting_projects_public) %></label>
+<%= check_box_tag 'settings[projects_public]', 1, Setting.projects_public? %>
+<%= hidden_field_tag 'settings[projects_public]', 0 %>
 </div>
 
 <%= submit_tag l(:button_save) %>
Index: lang/en.yml
===================================================================
--- lang/en.yml	(revision 1229)
+++ lang/en.yml	(working copy)
@@ -193,6 +194,7 @@
 setting_text_formatting: Text formatting
 setting_wiki_compression: Wiki history compression
 setting_feeds_limit: Feed content limit
+setting_projects_public: Projects are public by default
 setting_autofetch_changesets: Autofetch commits
 setting_sys_api_enabled: Enable WS for repository management
 setting_commit_ref_keywords: Referencing keywords
