Feature #14236 » shared_versions_visibility.patch
app/models/project.rb | ||
---|---|---|
445 | 445 |
@rolled_up_versions ||= |
446 | 446 |
Version.scoped(:include => :project, |
447 | 447 |
:conditions => ["#{Project.table_name}.lft >= ? AND #{Project.table_name}.rgt <= ? AND #{Project.table_name}.status <> #{STATUS_ARCHIVED}", lft, rgt]) |
448 |
@rolled_up_versions.reject! { |version| !User.current.allowed_to?(:view_issues, version.project) } unless Setting.public_versions? |
|
449 |
@rolled_up_versions |
|
448 | 450 |
end |
449 | 451 | |
450 | 452 |
# Returns a scope of the Versions used by the project |
... | ... | |
465 | 467 |
"))") |
466 | 468 |
end |
467 | 469 |
end |
470 |
@shared_versions.reject! { |version| !User.current.allowed_to?(:view_issues, version.project) } unless Setting.public_versions? |
|
471 |
@shared_versions |
|
468 | 472 |
end |
469 | 473 | |
470 | 474 |
# Returns a hash of project users grouped by role |
app/views/settings/_projects.html.erb | ||
---|---|---|
14 | 14 |
<p><%= setting_select :new_project_user_role_id, |
15 | 15 |
Role.find_all_givable.collect {|r| [r.name, r.id.to_s]}, |
16 | 16 |
:blank => "--- #{l(:actionview_instancetag_blank_option)} ---" %></p> |
17 | ||
18 |
<p><%= setting_check_box :public_versions %></p> |
|
17 | 19 |
</div> |
18 | 20 | |
19 | 21 |
<%= submit_tag l(:button_save) %> |
config/locales/ar.yml | ||
---|---|---|
1087 | 1087 |
field_closed_on: Closed |
1088 | 1088 |
setting_default_projects_tracker_ids: Default trackers for new projects |
1089 | 1089 |
label_total_time: الإجمالي |
1090 |
setting_public_versions: Shared versions visible to non members |
config/locales/az.yml | ||
---|---|---|
1184 | 1184 |
field_closed_on: Closed |
1185 | 1185 |
setting_default_projects_tracker_ids: Default trackers for new projects |
1186 | 1186 |
label_total_time: Cəmi |
1187 |
setting_public_versions: Shared versions visible to non members |
config/locales/bg.yml | ||
---|---|---|
1084 | 1084 |
description_date_from: Въведете начална дата |
1085 | 1085 |
description_date_to: Въведете крайна дата |
1086 | 1086 |
text_repository_identifier_info: 'Позволени са малки букви (a-z), цифри, тирета и _.<br />Промяна след създаването му не е възможна.' |
1087 | ||
1088 |
setting_public_versions: Shared versions visible to non members |
config/locales/bs.yml | ||
---|---|---|
1100 | 1100 |
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it. |
1101 | 1101 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1102 | 1102 |
setting_emails_header: Email header |
1103 |
setting_public_versions: Shared versions visible to non members |
config/locales/ca.yml | ||
---|---|---|
1089 | 1089 |
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it. |
1090 | 1090 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1091 | 1091 |
setting_emails_header: Email header |
1092 |
setting_public_versions: Shared versions visible to non members |
config/locales/cs.yml | ||
---|---|---|
1091 | 1091 |
field_closed_on: Uzavřeno |
1092 | 1092 |
setting_default_projects_tracker_ids: Výchozí fronta pro nové projekty |
1093 | 1093 |
label_total_time: Celkem |
1094 | ||
1095 |
setting_public_versions: Shared versions visible to non members |
config/locales/da.yml | ||
---|---|---|
1104 | 1104 |
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it. |
1105 | 1105 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1106 | 1106 |
setting_emails_header: Email header |
1107 |
setting_public_versions: Shared versions visible to non members |
config/locales/de.yml | ||
---|---|---|
1099 | 1099 | |
1100 | 1100 |
warning_attachments_not_saved: "%{count} Datei(en) konnten nicht gespeichert werden." |
1101 | 1101 |
label_total_time: Gesamtzeit |
1102 | ||
1103 |
setting_public_versions: Shared versions visible to non members |
config/locales/el.yml | ||
---|---|---|
1087 | 1087 |
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it. |
1088 | 1088 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1089 | 1089 |
setting_emails_header: Email header |
1090 |
setting_public_versions: Shared versions visible to non members |
config/locales/en-GB.yml | ||
---|---|---|
1089 | 1089 |
field_closed_on: Closed |
1090 | 1090 |
setting_default_projects_tracker_ids: Default trackers for new projects |
1091 | 1091 |
label_total_time: Total |
1092 |
setting_public_versions: Shared versions visible to non members |
config/locales/en.yml | ||
---|---|---|
401 | 401 |
setting_non_working_week_days: Non-working days |
402 | 402 |
setting_jsonp_enabled: Enable JSONP support |
403 | 403 |
setting_default_projects_tracker_ids: Default trackers for new projects |
404 |
setting_public_versions: Shared versions visible to non members |
|
404 | 405 | |
405 | 406 |
permission_add_project: Create project |
406 | 407 |
permission_add_subprojects: Create subprojects |
config/locales/es.yml | ||
---|---|---|
1123 | 1123 |
field_closed_on: Closed |
1124 | 1124 |
setting_default_projects_tracker_ids: Default trackers for new projects |
1125 | 1125 |
label_total_time: Total |
1126 |
setting_public_versions: Shared versions visible to non members |
config/locales/et.yml | ||
---|---|---|
1100 | 1100 |
field_closed_on: Closed |
1101 | 1101 |
setting_default_projects_tracker_ids: Default trackers for new projects |
1102 | 1102 |
label_total_time: "Kokku" |
1103 |
setting_public_versions: Shared versions visible to non members |
config/locales/eu.yml | ||
---|---|---|
1088 | 1088 |
label_total_time: Guztira |
1089 | 1089 |
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it. |
1090 | 1090 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1091 |
setting_public_versions: Shared versions visible to non members |
config/locales/fa.yml | ||
---|---|---|
1089 | 1089 |
label_total_time: جمله |
1090 | 1090 |
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it. |
1091 | 1091 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1092 |
setting_public_versions: Shared versions visible to non members |
config/locales/fi.yml | ||
---|---|---|
1108 | 1108 |
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it. |
1109 | 1109 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1110 | 1110 |
setting_emails_header: Email header |
1111 |
setting_public_versions: Shared versions visible to non members |
config/locales/fr.yml | ||
---|---|---|
1100 | 1100 |
setting_repositories_encodings: Encodages des fichiers et des dépôts |
1101 | 1101 |
label_search_for_watchers: Rechercher des observateurs |
1102 | 1102 |
text_repository_identifier_info: 'Seuls les lettres minuscules (a-z), chiffres, tirets et underscore sont autorisés.<br />Un fois sauvegardé, l''identifiant ne pourra plus être modifié.' |
1103 | ||
1104 |
setting_public_versions: Shared versions visible to non members |
config/locales/gl.yml | ||
---|---|---|
1098 | 1098 |
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it. |
1099 | 1099 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1100 | 1100 |
setting_emails_header: Email header |
1101 |
setting_public_versions: Shared versions visible to non members |
config/locales/he.yml | ||
---|---|---|
1092 | 1092 |
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it. |
1093 | 1093 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1094 | 1094 |
setting_emails_header: Email header |
1095 |
setting_public_versions: Shared versions visible to non members |
config/locales/hr.yml | ||
---|---|---|
1088 | 1088 |
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it. |
1089 | 1089 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1090 | 1090 |
setting_emails_header: Email header |
1091 |
setting_public_versions: Shared versions visible to non members |
config/locales/hu.yml | ||
---|---|---|
1106 | 1106 |
label_total_time: Összesen |
1107 | 1107 |
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it. |
1108 | 1108 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1109 |
setting_public_versions: Shared versions visible to non members |
config/locales/id.yml | ||
---|---|---|
1091 | 1091 |
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it. |
1092 | 1092 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1093 | 1093 |
setting_emails_header: Email header |
1094 |
setting_public_versions: Shared versions visible to non members |
config/locales/it.yml | ||
---|---|---|
1088 | 1088 |
field_closed_on: Chiuso il |
1089 | 1089 |
setting_default_projects_tracker_ids: Tracker di default per nuovi progetti |
1090 | 1090 |
label_total_time: Totale |
1091 |
setting_public_versions: Versioni condivise visibili a non membri |
config/locales/ja.yml | ||
---|---|---|
1116 | 1116 |
field_inherit_members: メンバーを継承 |
1117 | 1117 |
field_closed_on: 終了日 |
1118 | 1118 |
label_total_time: 合計 |
1119 | ||
1120 |
setting_public_versions: Shared versions visible to non members |
config/locales/ko.yml | ||
---|---|---|
1136 | 1136 |
field_closed_on: 완료일 |
1137 | 1137 |
setting_default_projects_tracker_ids: 새 프로젝트에 기본적으로 추가할 일감 유형 |
1138 | 1138 |
label_total_time: 합계 |
1139 | ||
1140 |
setting_public_versions: Shared versions visible to non members |
config/locales/lt.yml | ||
---|---|---|
1146 | 1146 |
label_total_time: Iš viso |
1147 | 1147 |
text_scm_config: Jūs galite pakeisti SCM komandas byloje config/configuration.yml. Prašome perkrauti programą po redagavimo, idant įgalinti pakeitimus. |
1148 | 1148 |
text_scm_command_not_available: SCM komanda nepasiekiama. Patikrinkite administravimo skydelio nustatymus. |
1149 | ||
1150 |
setting_public_versions: Shared versions visible to non members |
config/locales/lv.yml | ||
---|---|---|
1081 | 1081 |
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it. |
1082 | 1082 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1083 | 1083 |
setting_emails_header: Email header |
1084 |
setting_public_versions: Shared versions visible to non members |
config/locales/mk.yml | ||
---|---|---|
1087 | 1087 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1088 | 1088 |
setting_emails_footer: Email footer |
1089 | 1089 |
setting_emails_header: Email header |
1090 |
setting_public_versions: Shared versions visible to non members |
config/locales/mn.yml | ||
---|---|---|
1088 | 1088 |
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it. |
1089 | 1089 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1090 | 1090 |
setting_emails_header: Email header |
1091 |
setting_public_versions: Shared versions visible to non members |
config/locales/nl.yml | ||
---|---|---|
1068 | 1068 |
setting_default_projects_tracker_ids: Standaard trackers voor nieuwe projecten |
1069 | 1069 |
label_total_time: Totaal |
1070 | 1070 |
setting_emails_header: Email header |
1071 |
setting_public_versions: Shared versions visible to non members |
config/locales/no.yml | ||
---|---|---|
1077 | 1077 |
field_closed_on: Closed |
1078 | 1078 |
setting_default_projects_tracker_ids: Default trackers for new projects |
1079 | 1079 |
label_total_time: Totalt |
1080 |
setting_public_versions: Shared versions visible to non members |
config/locales/pl.yml | ||
---|---|---|
1108 | 1108 |
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it. |
1109 | 1109 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1110 | 1110 |
setting_emails_header: Email header |
1111 |
setting_public_versions: Shared versions visible to non members |
config/locales/pt-BR.yml | ||
---|---|---|
1107 | 1107 |
field_closed_on: Fechado |
1108 | 1108 |
setting_default_projects_tracker_ids: Default trackers for new projects |
1109 | 1109 |
label_total_time: Total |
1110 | ||
1111 |
setting_public_versions: Shared versions visible to non members |
config/locales/pt.yml | ||
---|---|---|
1093 | 1093 |
field_closed_on: Fechado |
1094 | 1094 |
setting_default_projects_tracker_ids: Default trackers for new projects |
1095 | 1095 |
label_total_time: Total |
1096 | ||
1097 |
setting_public_versions: Shared versions visible to non members |
config/locales/ro.yml | ||
---|---|---|
1082 | 1082 |
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it. |
1083 | 1083 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1084 | 1084 |
setting_emails_header: Email header |
1085 |
setting_public_versions: Shared versions visible to non members |
config/locales/ru.yml | ||
---|---|---|
1197 | 1197 |
field_closed_on: Закрыта |
1198 | 1198 |
setting_default_projects_tracker_ids: Трекеры по умолчанию для новых проектов |
1199 | 1199 |
label_total_time: Общее время |
1200 | ||
1201 |
setting_public_versions: Shared versions visible to non members |
config/locales/sk.yml | ||
---|---|---|
1084 | 1084 |
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it. |
1085 | 1085 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1086 | 1086 |
setting_emails_header: Email header |
1087 |
setting_public_versions: Shared versions visible to non members |
config/locales/sl.yml | ||
---|---|---|
1087 | 1087 |
field_closed_on: Closed |
1088 | 1088 |
setting_default_projects_tracker_ids: Default trackers for new projects |
1089 | 1089 |
label_total_time: Skupaj |
1090 |
setting_public_versions: Shared versions visible to non members |
config/locales/sq.yml | ||
---|---|---|
1083 | 1083 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1084 | 1084 |
setting_emails_footer: Email footer |
1085 | 1085 |
setting_emails_header: Email header |
1086 |
setting_public_versions: Shared versions visible to non members |
config/locales/sr-YU.yml | ||
---|---|---|
1089 | 1089 |
label_total_time: Ukupno |
1090 | 1090 |
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it. |
1091 | 1091 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1092 |
setting_public_versions: Shared versions visible to non members |
config/locales/sr.yml | ||
---|---|---|
1088 | 1088 |
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it. |
1089 | 1089 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1090 | 1090 |
setting_emails_header: Email header |
1091 |
setting_public_versions: Shared versions visible to non members |
config/locales/sv.yml | ||
---|---|---|
1125 | 1125 |
description_date_from: Ange startdatum |
1126 | 1126 |
description_date_to: Ange slutdatum |
1127 | 1127 |
text_repository_identifier_info: 'Endast gemener (a-z), siffror, streck och understreck är tillåtna.<br />När identifieraren sparats kan den inte ändras.' |
1128 | ||
1129 |
setting_public_versions: Shared versions visible to non members |
config/locales/th.yml | ||
---|---|---|
1084 | 1084 |
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it. |
1085 | 1085 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1086 | 1086 |
setting_emails_header: Email header |
1087 |
setting_public_versions: Shared versions visible to non members |
config/locales/tr.yml | ||
---|---|---|
1106 | 1106 |
label_total_time: Toplam |
1107 | 1107 |
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it. |
1108 | 1108 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1109 |
setting_public_versions: Shared versions visible to non members |
config/locales/uk.yml | ||
---|---|---|
1082 | 1082 |
text_scm_config: You can configure your SCM commands in config/configuration.yml. Please restart the application after editing it. |
1083 | 1083 |
text_scm_command_not_available: SCM command is not available. Please check settings on the administration panel. |
1084 | 1084 |
setting_emails_header: Email header |
1085 |
setting_public_versions: Shared versions visible to non members |
config/locales/vi.yml | ||
---|---|---|
1140 | 1140 |
field_closed_on: Đã đóng |
1141 | 1141 |
setting_default_projects_tracker_ids: Default trackers for new projects |
1142 | 1142 |
label_total_time: Tổng cộng |
1143 | ||
1144 |
setting_public_versions: Shared versions visible to non members |
config/locales/zh-TW.yml | ||
---|---|---|
1169 | 1169 |
description_date_to: 輸入結束日期 |
1170 | 1170 |
text_repository_identifier_info: '僅允許使用小寫英文字母 (a-z), 阿拉伯數字, 虛線與底線。<br />一旦儲存之後, 代碼便無法再次被更改。' |
1171 | 1171 |
label_total_time: 總計 |
1172 | ||
1173 |
setting_public_versions: Shared versions visible to non members |
config/locales/zh.yml | ||
---|---|---|
1091 | 1091 |
field_closed_on: Closed |
1092 | 1092 |
setting_default_projects_tracker_ids: Default trackers for new projects |
1093 | 1093 |
label_total_time: 合计 |
1094 |
setting_public_versions: Shared versions visible to non members |
config/settings.yml | ||
---|---|---|
230 | 230 |
default: |
231 | 231 |
- '6' |
232 | 232 |
- '7' |
233 |
public_versions: |
|
234 |
default: 1 |