Index: config/settings.yml =================================================================== --- config/settings.yml (revision 3739) +++ config/settings.yml (working copy) @@ -182,3 +182,5 @@ default: '' rest_api_enabled: default: 0 +display_member_projects_only: + default: 1 Index: app/views/settings/_projects.rhtml =================================================================== --- app/views/settings/_projects.rhtml (revision 3739) +++ app/views/settings/_projects.rhtml (working copy) @@ -1,6 +1,8 @@ <% form_tag({:action => 'edit', :tab => 'projects'}) do %>
+

<%= setting_check_box :display_member_projects_only %>

+

<%= setting_check_box :default_projects_public %>

<%= setting_multiselect(:default_projects_modules, Index: app/helpers/application_helper.rb =================================================================== --- app/helpers/application_helper.rb (revision 3739) +++ app/helpers/application_helper.rb (working copy) @@ -186,7 +191,11 @@ # Renders the project quick-jump box def render_project_jump_box # Retrieve them now to avoid a COUNT query - projects = User.current.projects.all + projects = [] + if Setting.display_member_projects_only? + projects = User.current.projects.all + else + unless Setting.login_required? && User.current.anonymous? + projects = Project.visible(User.current) + end + end if projects.any? s = '