Project

General

Profile

Feature #337 » private_issues.v.0.7-0.9.3.patch

for version 0.9.3 - Oleg Volkov, 2010-04-23 17:10

View differences:

redmine/app/controllers/issues_controller.rb 2010-04-23 16:51:54.059684277 +0400
104 104
  end
105 105
  
106 106
  def show
107
    return render_403 if !@issue.visible?
107 108
    @journals = @issue.journals.find(:all, :include => [:user, :details], :order => "#{Journal.table_name}.created_on ASC")
108 109
    @journals.each_with_index {|j,i| j.indice = i+1}
109 110
    @journals.reverse! if User.current.wants_comments_in_reverse_order?
redmine/app/controllers/projects_controller.rb 2010-04-23 16:51:54.079692487 +0400
137 137
    @open_issues_by_tracker = Issue.visible.count(:group => :tracker,
138 138
                                            :include => [:project, :status, :tracker],
139 139
                                            :conditions => ["(#{cond}) AND #{IssueStatus.table_name}.is_closed=?", false])
140
    @private_issues_by_tracker = Issue.count(:group => :tracker,
141
                                             :include => [:project, :status, :tracker],
142
                                             :conditions => ["(#{cond}) AND #{IssueStatus.table_name}.is_closed=? AND #{Issue.table_name}.is_private=?", false, true])
140 143
    @total_issues_by_tracker = Issue.visible.count(:group => :tracker,
141 144
                                            :include => [:project, :status, :tracker],
142 145
                                            :conditions => cond)
......
349 352
    @activity.scope = (@author.nil? ? :default : :all) if @activity.scope.empty?
350 353

  
351 354
    events = @activity.events(@date_from, @date_to)
355

  
356
    # The private issues should be removed from events
357
    events.delete_if { |e| e.is_a?(Issue) && !e.visible? || e.is_a?(Journal) && !e.issue.visible? }
352 358
    
353 359
    if events.empty? || stale?(:etag => [events.first, User.current])
354 360
      respond_to do |format|
redmine/app/helpers/issues_helper.rb 2010-04-20 23:03:31.730257806 +0400
96 96
      when 'estimated_hours'
97 97
        value = "%0.02f" % detail.value.to_f unless detail.value.blank?
98 98
        old_value = "%0.02f" % detail.old_value.to_f unless detail.old_value.blank?
99
      when 'is_private'
100
        value = l(detail.value == "1" ? :general_text_Yes : :general_text_No)
101
        old_value = l(detail.old_value == "1" ? :general_text_Yes : :general_text_No)
99 102
      end
100 103
    when 'cf'
101 104
      custom_field = CustomField.find_by_id(detail.prop_key)
......
153 156
                  l(:field_priority),
154 157
                  l(:field_subject),
155 158
                  l(:field_assigned_to),
159
                  l(:field_is_private),
156 160
                  l(:field_category),
157 161
                  l(:field_fixed_version),
158 162
                  l(:field_author),
......
179 183
                  issue.priority.name,
180 184
                  issue.subject,
181 185
                  issue.assigned_to,
186
                  issue.is_private,
182 187
                  issue.category,
183 188
                  issue.fixed_version,
184 189
                  issue.author.name,
redmine/app/models/issue.rb 2010-04-20 22:59:02.675645138 +0400
61 61
  before_save :update_done_ratio_from_issue_status
62 62
  after_save :create_journal
63 63
  
64
  # Returns true if usr or current user is allowed to view the issue
65
  def visible?(usr=nil)
66
    (usr || User.current).allowed_to?(:view_issues, self.project)
64
  # Returns true if user is allowed to view the issue
65
  def visible?(user=User.current)
66
    user.allowed_to?(:view_issues, self.project) && (is_private==false || user.allowed_to?(:view_private_issues, self.project) || author == user || assigned_to == user || watched_by?(user))
67 67
  end
68 68
  
69 69
  def after_initialize
......
212 212
  end
213 213
  
214 214
  def before_create
215
    # default assignment based on category
215
    # default assignment based on category and is_private
216 216
    if assigned_to.nil? && category && category.assigned_to
217 217
      self.assigned_to = category.assigned_to
218 218
    end
219
    if author.allowed_to?(:add_private_issues, self.project)
220
      self.is_private=1 unless author.allowed_to?(:add_issues, self.project)
221
    else
222
      self.is_private=0
223
    end
219 224
  end
220 225
  
221 226
  # Set the done_ratio using the status if that setting is set.  This will keep the done_ratios
redmine/app/models/query.rb 2010-04-23 16:51:54.098691666 +0400
127 127
    QueryColumn.new(:assigned_to, :sortable => ["#{User.table_name}.lastname", "#{User.table_name}.firstname", "#{User.table_name}.id"], :groupable => true),
128 128
    QueryColumn.new(:updated_on, :sortable => "#{Issue.table_name}.updated_on", :default_order => 'desc'),
129 129
    QueryColumn.new(:category, :sortable => "#{IssueCategory.table_name}.name", :groupable => true),
130
    QueryColumn.new(:is_private, :sortable => "#{Issue.table_name}.is_private", :groupable => true),
130 131
    QueryColumn.new(:fixed_version, :sortable => ["#{Version.table_name}.effective_date", "#{Version.table_name}.name"], :default_order => 'desc', :groupable => true),
131 132
    QueryColumn.new(:start_date, :sortable => "#{Issue.table_name}.start_date"),
132 133
    QueryColumn.new(:due_date, :sortable => "#{Issue.table_name}.due_date"),
......
194 195
    
195 196
    if User.current.logged?
196 197
      @available_filters["watcher_id"] = { :type => :list, :order => 15, :values => [["<< #{l(:label_me)} >>", "me"]] }
198
      @available_filters["is_private"] = { :type => :list, :values => [[l(:general_text_yes), "1"], [l(:general_text_no), "0"]], :order => 16 }
197 199
    end
198 200
  
199 201
    if project
......
409 411
      
410 412
    end if filters and valid?
411 413
    
414
    db_table = Watcher.table_name
415
    cu_id = User.current.id.to_s
416
    filters_clauses <<  '(' + Project.allowed_to_condition(User.current, :view_private_issues) + " OR #{Issue.table_name}.is_private=0 OR #{Issue.table_name}.author_id=#{cu_id} OR #{Issue.table_name}.assigned_to_id=#{cu_id} OR #{Issue.table_name}.id IN (SELECT #{db_table}.watchable_id FROM #{db_table} WHERE #{db_table}.watchable_type='Issue' AND user_id=#{cu_id}))"
412 417
    (filters_clauses << project_statement).join(' AND ')
413 418
  end
414 419
  
redmine/app/models/user.rb 2010-04-17 12:03:42.118809360 +0400
289 289
      
290 290
      roles = roles_for_project(project)
291 291
      return false unless roles
292
      roles.detect {|role| (project.is_public? || role.member?) && role.allowed_to?(action)}
292
      roles.any? {|role| (project.is_public? || role.member?) && role.allowed_to?(action)}
293 293
      
294 294
    elsif options[:global]
295 295
      # Admin users are always authorized
......
297 297
      
298 298
      # authorize if user has at least one role that has this permission
299 299
      roles = memberships.collect {|m| m.roles}.flatten.uniq
300
      roles.detect {|r| r.allowed_to?(action)} || (self.logged? ? Role.non_member.allowed_to?(action) : Role.anonymous.allowed_to?(action))
300
      roles.any? {|r| r.allowed_to?(action)} || (self.logged? ? Role.non_member.allowed_to?(action) : Role.anonymous.allowed_to?(action))
301 301
    else
302 302
      false
303 303
    end
redmine/app/views/issues/_form.rhtml 2010-04-17 12:03:42.136812699 +0400
15 15
<div id="attributes" class="attributes">
16 16
	<%= render :partial => 'attributes' %>
17 17
</div>
18
<% if User.current.allowed_to?(:add_issues, @project) && User.current.allowed_to?(:add_private_issues, @project) %>
19
<p><%=f.check_box :is_private %></p>
20
<% end %>
18 21

  
19 22
<% if @issue.new_record? %>
20 23
<p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p>
redmine/app/views/issues/show.rhtml 2010-04-23 16:53:39.230316938 +0400
37 37
    <% if @issue.estimated_hours %>
38 38
    <th class="estimated-hours"><%=l(:field_estimated_hours)%>:</th><td class="estimated-hours"><%= l_hours(@issue.estimated_hours) %></td>
39 39
    <% end %>
40
    <% if @issue.is_private %>
41
    <th class="private-issue"><%=l(:field_is_private)%>:</th><td class="private-issue"><%=l(:general_text_Yes)%></td>
42
    <% end %>
40 43
</tr>
41 44
<%= render_custom_fields_rows(@issue) %>
42 45
<%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %>
redmine/app/views/projects/show.rhtml 2010-04-17 12:03:42.363810665 +0400
31 31
                                                "tracker_id" => tracker.id %>:
32 32
					<%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i,
33 33
																										:total => @total_issues_by_tracker[tracker].to_i) %>
34
        (<%= @private_issues_by_tracker[tracker] || 0 %> <%= l(:label_private_issues, @private_issues_by_tracker[tracker] || 0) %>)
34 35
			</li>
35 36
    <% end %>
36 37
    </ul>
redmine/config/locales/bg.yml 2010-04-23 16:56:13.188544993 +0400
360 360
  label_public_projects: Публични проекти
361 361
  label_open_issues: отворена
362 362
  label_open_issues_plural: отворени
363
  label_private_issues: private
364
  label_private_issues_plural: private
363 365
  label_closed_issues: затворена
364 366
  label_closed_issues_plural: затворени
365 367
  label_x_open_issues_abbr_on_total:
......
716 718
  setting_mail_handler_api_key: API key
717 719
  text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
718 720
  field_parent_title: Parent page
721
  field_is_private: Private issue
719 722
  label_issue_watchers: Watchers
720 723
  setting_commit_logs_encoding: Commit messages encoding
721 724
  button_quote: Quote
......
729 732
  permission_edit_own_time_entries: Edit own time logs
730 733
  permission_manage_public_queries: Manage public queries
731 734
  permission_add_issues: Add issues
735
  permission_add_private_issues: Add private issues
736
  permission_view_private_issues: View private issues
732 737
  permission_log_time: Log spent time
733 738
  permission_view_changesets: View changesets
734 739
  permission_view_time_entries: View spent time
......
881 886
  permission_export_wiki_pages: Export wiki pages
882 887
  setting_cache_formatted_text: Cache formatted text
883 888
  permission_manage_project_activities: Manage project activities
884
  
889
  
redmine/config/locales/bs.yml 2010-04-23 16:56:13.190544964 +0400
274 274
  field_default_value: Podrazumjevana vrijednost
275 275
  field_comments_sorting: Prikaži komentare
276 276
  field_parent_title: 'Stranica "roditelj"'
277
  field_is_private: Private issue
277 278
  field_editable: Može se mijenjati
278 279
  field_watcher: Posmatrač
279 280
  field_identity_url: OpenID URL
......
329 330
  permission_manage_versions: Upravljanje verzijama
330 331
  permission_manage_categories: Upravljanje kategorijama aktivnosti
331 332
  permission_add_issues: Dodaj aktivnosti
333
  permission_add_private_issues: Add private issues
334
  permission_view_private_issues: View private issues
332 335
  permission_edit_issues: Ispravka aktivnosti
333 336
  permission_manage_issue_relations: Upravljaj relacijama među aktivnostima
334 337
  permission_add_issue_notes: Dodaj bilješke
......
496 499
  label_public_projects: Javni projekti
497 500
  label_open_issues: otvoren
498 501
  label_open_issues_plural: otvoreni
502
  label_private_issues: private
503
  label_private_issues_plural: private
499 504
  label_closed_issues: zatvoren
500 505
  label_closed_issues_plural: zatvoreni
501 506
  label_x_open_issues_abbr_on_total:
redmine/config/locales/ca.yml 2010-04-23 16:56:13.235550650 +0400
256 256
  field_default_value: Valor predeterminat
257 257
  field_comments_sorting: Mostra els comentaris
258 258
  field_parent_title: Pàgina pare
259
  field_is_private: Private issue
259 260
  field_editable: Es pot editar
260 261
  field_watcher: Vigilància
261 262
  field_identity_url: URL OpenID
......
310 311
  permission_manage_versions: Gestiona les versions
311 312
  permission_manage_categories: Gestiona les categories dels assumptes
312 313
  permission_add_issues: Afegeix assumptes
314
  permission_add_private_issues: Add private issues
315
  permission_view_private_issues: View private issues
313 316
  permission_edit_issues: Edita els assumptes
314 317
  permission_manage_issue_relations: Gestiona les relacions dels assumptes
315 318
  permission_add_issue_notes: Afegeix notes
......
476 479
  label_public_projects: Projectes públics
477 480
  label_open_issues: obert
478 481
  label_open_issues_plural: oberts
482
  label_private_issues: private
483
  label_private_issues_plural: private
479 484
  label_closed_issues: tancat
480 485
  label_closed_issues_plural: tancats
481 486
  label_x_open_issues_abbr_on_total:
redmine/config/locales/cs.yml 2010-04-23 16:56:13.277565376 +0400
407 407
  label_public_projects: Veřejné projekty
408 408
  label_open_issues: otevřený
409 409
  label_open_issues_plural: otevřené
410
  label_private_issues: private
411
  label_private_issues_plural: private
410 412
  label_closed_issues: uzavřený
411 413
  label_closed_issues_plural: uzavřené
412 414
  label_x_open_issues_abbr_on_total:
......
722 724
  setting_mail_handler_api_key: API klíč
723 725
  text_email_delivery_not_configured: "Doručování e-mailů není nastaveno a odesílání notifikací je zakázáno.\nNastavte Váš SMTP server v souboru config/email.yml a restartujte aplikaci."
724 726
  field_parent_title: Rodičovská stránka
727
  field_is_private: Private issue
725 728
  label_issue_watchers: Sledování
726 729
  setting_commit_logs_encoding: Kódování zpráv při commitu
727 730
  button_quote: Citovat
......
735 738
  permission_edit_own_time_entries: Upravování vlastních zázamů o stráveném čase
736 739
  permission_manage_public_queries: Správa veřejných dotazů
737 740
  permission_add_issues: Přidávání úkolů
741
  permission_add_private_issues: Add private issues
742
  permission_view_private_issues: View private issues
738 743
  permission_log_time: Zaznamenávání stráveného času
739 744
  permission_view_changesets: Zobrazování sady změn
740 745
  permission_view_time_entries: Zobrazení stráveného času
redmine/config/locales/da.yml 2010-04-23 16:56:13.319571922 +0400
418 418
  label_public_projects: Offentlige projekter
419 419
  label_open_issues: åben
420 420
  label_open_issues_plural: åbne
421
  label_private_issues: private
422
  label_private_issues_plural: private
421 423
  label_closed_issues: lukket
422 424
  label_closed_issues_plural: lukkede
423 425
  label_x_open_issues_abbr_on_total:
......
733 735
  button_quote: Citér
734 736
  permission_view_files: Se filer
735 737
  permission_add_issues: Tilføj sager
738
  permission_add_private_issues: Add private issues
739
  permission_view_private_issues: View private issues
736 740
  permission_edit_own_messages: Redigér egne beskeder
737 741
  permission_delete_own_messages: Slet egne beskeder
738 742
  permission_manage_public_queries: Administrér offentlig forespørgsler
......
748 752
  setting_sequential_project_identifiers: Generér sekventielle projekt-identifikatorer
749 753
  setting_plain_text_mail: Emails som almindelig tekst (ingen HTML)
750 754
  field_parent_title: Siden over
755
  field_is_private: Private issue
751 756
  text_email_delivery_not_configured: "Email-afsendelse er ikke indstillet og notifikationer er defor slået fra.\nKonfigurér din SMTP server i config/email.yml og genstart applikationen for at aktivere email-afsendelse."
752 757
  permission_protect_wiki_pages: Beskyt wiki sider
753 758
  permission_manage_documents: Administrér dokumenter
redmine/config/locales/de.yml 2010-04-23 16:56:13.360571105 +0400
279 279
  field_default_value: Standardwert
280 280
  field_comments_sorting: Kommentare anzeigen
281 281
  field_parent_title: Übergeordnete Seite
282
  field_is_private: Private issue
282 283
  
283 284
  setting_app_title: Applikations-Titel
284 285
  setting_app_subtitle: Applikations-Untertitel
......
326 327
  permission_manage_versions: Versionen verwalten
327 328
  permission_manage_categories: Ticket-Kategorien verwalten
328 329
  permission_add_issues: Tickets hinzufügen
330
  permission_add_private_issues: Add private issues
331
  permission_view_private_issues: View private issues
329 332
  permission_edit_issues: Tickets bearbeiten
330 333
  permission_manage_issue_relations: Ticket-Beziehungen verwalten
331 334
  permission_add_issue_notes: Kommentare hinzufügen
......
491 494
  label_public_projects: Öffentliche Projekte
492 495
  label_open_issues: offen
493 496
  label_open_issues_plural: offen
497
  label_private_issues: private
498
  label_private_issues_plural: private
494 499
  label_closed_issues: geschlossen
495 500
  label_closed_issues_plural: geschlossen
496 501
  label_x_open_issues_abbr_on_total:
redmine/config/locales/el.yml 2010-04-23 16:56:13.387573311 +0400
265 265
  field_default_value: Προκαθορισμένη τιμή
266 266
  field_comments_sorting: Προβολή σχολίων
267 267
  field_parent_title: Γονική σελίδα
268
  field_is_private: Private issue
268 269
  field_editable: Επεξεργάσιμο
269 270
  field_watcher: Παρατηρητής
270 271
  field_identity_url: OpenID URL
......
323 324
  permission_manage_versions: Διαχείριση εκδόσεων
324 325
  permission_manage_categories: Διαχείριση κατηγοριών θεμάτων
325 326
  permission_add_issues: Προσθήκη θεμάτων
327
  permission_add_private_issues: Add private issues
328
  permission_view_private_issues: View private issues
326 329
  permission_edit_issues: Επεξεργασία θεμάτων
327 330
  permission_manage_issue_relations: Διαχείριση συσχετισμών θεμάτων
328 331
  permission_add_issue_notes: Προσθήκη σημειώσεων
......
489 492
  label_public_projects: Δημόσια έργα
490 493
  label_open_issues: Ανοικτό
491 494
  label_open_issues_plural: Ανοικτά
495
  label_private_issues: private
496
  label_private_issues_plural: private
492 497
  label_closed_issues: Κλειστό
493 498
  label_closed_issues_plural: Κλειστά
494 499
  label_x_open_issues_abbr_on_total:
redmine/config/locales/en.yml 2010-04-23 16:56:13.405577560 +0400
270 270
  field_default_value: Default value
271 271
  field_comments_sorting: Display comments
272 272
  field_parent_title: Parent page
273
  field_is_private: Private issue
273 274
  field_editable: Editable
274 275
  field_watcher: Watcher
275 276
  field_identity_url: OpenID URL
......
341 342
  permission_manage_categories: Manage issue categories
342 343
  permission_view_issues: View Issues
343 344
  permission_add_issues: Add issues
345
  permission_add_private_issues: Add private issues
346
  permission_view_private_issues: View private issues
344 347
  permission_edit_issues: Edit issues
345 348
  permission_manage_issue_relations: Manage issue relations
346 349
  permission_add_issue_notes: Add notes
......
512 515
  label_public_projects: Public projects
513 516
  label_open_issues: open
514 517
  label_open_issues_plural: open
518
  label_private_issues: private
519
  label_private_issues_plural: private
515 520
  label_closed_issues: closed
516 521
  label_closed_issues_plural: closed
517 522
  label_x_open_issues_abbr_on_total:
redmine/config/locales/es.yml 2010-04-23 16:56:13.423589557 +0400
300 300
  field_onthefly: Creación del usuario "al vuelo"
301 301
  field_parent: Proyecto padre
302 302
  field_parent_title: Página padre
303
  field_is_private: Private issue
303 304
  field_password: Contraseña
304 305
  field_password_confirmation: Confirmación
305 306
  field_port: Puerto
......
538 539
  label_not_equals: no igual
539 540
  label_open_issues: abierta
540 541
  label_open_issues_plural: abiertas
542
  label_private_issues: private
543
  label_private_issues_plural: private
541 544
  label_optional_description: Descripción opcional
542 545
  label_options: Opciones
543 546
  label_overall_activity: Actividad global
......
690 693
  permission_add_issue_notes: Añadir notas
691 694
  permission_add_issue_watchers: Añadir seguidores
692 695
  permission_add_issues: Añadir peticiones
696
  permission_add_private_issues: Add private issues
697
  permission_view_private_issues: View private issues
693 698
  permission_add_messages: Enviar mensajes
694 699
  permission_browse_repository: Hojear repositiorio
695 700
  permission_comment_news: Comentar noticias
redmine/config/locales/fi.yml 2010-04-23 16:56:13.441593030 +0400
417 417
  label_public_projects: Julkiset projektit
418 418
  label_open_issues: avoin, yhteensä
419 419
  label_open_issues_plural: avointa, yhteensä
420
  label_private_issues: private
421
  label_private_issues_plural: private
420 422
  label_closed_issues: suljettu
421 423
  label_closed_issues_plural: suljettua
422 424
  label_x_open_issues_abbr_on_total:
......
752 754
  setting_mail_handler_api_key: API avain
753 755
  text_email_delivery_not_configured: "Sähköpostin jakelu ei ole määritelty ja sähköpostimuistutukset eivät ole käytössä.\nKonfiguroi sähköpostipalvelinasetukset (SMTP) config/email.yml tiedostosta ja uudelleenkäynnistä sovellus jotta asetukset astuvat voimaan."
754 756
  field_parent_title: Aloitussivu
757
  field_is_private: Private issue
755 758
  label_issue_watchers: Tapahtuman seuraajat
756 759
  button_quote: Vastaa
757 760
  setting_sequential_project_identifiers: Luo peräkkäiset projektien tunnisteet
......
765 768
  permission_edit_own_time_entries: Muokka omia aikamerkintöjä
766 769
  permission_manage_public_queries: Hallinnoi julkisia hakuja
767 770
  permission_add_issues: Lisää tapahtumia
771
  permission_add_private_issues: Add private issues
772
  permission_view_private_issues: View private issues
768 773
  permission_log_time: Lokita käytettyä aikaa
769 774
  permission_view_changesets: Näytä muutosryhmät
770 775
  permission_view_time_entries: Näytä käytetty aika
redmine/config/locales/fr.yml 2010-04-23 16:56:13.467595582 +0400
292 292
  field_default_value: Valeur par défaut
293 293
  field_comments_sorting: Afficher les commentaires
294 294
  field_parent_title: Page parent
295
  field_is_private: Private issue
295 296
  field_editable: Modifiable
296 297
  field_watcher: Observateur
297 298
  field_identity_url: URL OpenID
......
363 364
  permission_manage_categories: Gérer les catégories de demandes
364 365
  permission_view_issues: Voir les demandes
365 366
  permission_add_issues: Créer des demandes
367
  permission_add_private_issues: Add private issues
368
  permission_view_private_issues: View private issues
366 369
  permission_edit_issues: Modifier les demandes
367 370
  permission_manage_issue_relations: Gérer les relations
368 371
  permission_add_issue_notes: Ajouter des notes
......
534 537
  label_public_projects: Projets publics
535 538
  label_open_issues: ouvert
536 539
  label_open_issues_plural: ouverts
540
  label_private_issues: private
541
  label_private_issues_plural: private
537 542
  label_closed_issues: fermé
538 543
  label_closed_issues_plural: fermés
539 544
  label_x_open_issues_abbr_on_total:
redmine/config/locales/gl.yml 2010-04-23 16:56:13.502603546 +0400
277 277
  field_onthefly: Creación do usuario "ao voo"
278 278
  field_parent: Proxecto pai
279 279
  field_parent_title: Páxina pai
280
  field_is_private: Private issue
280 281
  field_password: Contrasinal
281 282
  field_password_confirmation: Confirmación
282 283
  field_port: Porto
......
515 516
  label_not_equals: non igual
516 517
  label_open_issues: aberta
517 518
  label_open_issues_plural: abertas
519
  label_private_issues: private
520
  label_private_issues_plural: private
518 521
  label_optional_description: Descrición opcional
519 522
  label_options: Opcións
520 523
  label_overall_activity: Actividade global
......
667 670
  permission_add_issue_notes: Engadir notas
668 671
  permission_add_issue_watchers: Engadir seguidores
669 672
  permission_add_issues: Engadir peticións
673
  permission_add_private_issues: Add private issues
674
  permission_view_private_issues: View private issues
670 675
  permission_add_messages: Enviar mensaxes
671 676
  permission_browse_repository: Ollar repositorio
672 677
  permission_comment_news: Comentar noticias
redmine/config/locales/he.yml 2010-04-23 16:56:13.619586384 +0400
375 375
  label_public_projects: פרויקטים פומביים
376 376
  label_open_issues: פתוח
377 377
  label_open_issues_plural: פתוחים
378
  label_private_issues: private
379
  label_private_issues_plural: private
378 380
  label_closed_issues: סגור
379 381
  label_closed_issues_plural: סגורים
380 382
  label_x_open_issues_abbr_on_total:
......
726 728
  setting_mail_handler_api_key: מפתח API
727 729
  text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
728 730
  field_parent_title: דף אב
731
  field_is_private: Private issue
729 732
  label_issue_watchers: צופים
730 733
  setting_commit_logs_encoding: Commit messages encoding
731 734
  button_quote: צטט
......
739 742
  permission_edit_own_time_entries: ערוך את לוג הזמן של עצמך
740 743
  permission_manage_public_queries: נהל שאילתות פומביות
741 744
  permission_add_issues: הוסף נושא
745
  permission_add_private_issues: Add private issues
746
  permission_view_private_issues: View private issues
742 747
  permission_log_time: תעד זמן שבוזבז
743 748
  permission_view_changesets: צפה בקבוצות שינויים
744 749
  permission_view_time_entries: צפה בזמן שבוזבז
redmine/config/locales/hr.yml 2010-04-23 16:56:13.661584922 +0400
271 271
  field_default_value: Zadana vrijednost
272 272
  field_comments_sorting: Prikaz komentara
273 273
  field_parent_title: Parent page
274
  field_is_private: Private issue
274 275
  field_editable: Editable
275 276
  field_watcher: Watcher
276 277
  field_identity_url: OpenID URL
......
339 340
  permission_manage_categories: Upravljaj kategorijama predmeta
340 341
  permission_view_issues: Pregledaj zahtjeve
341 342
  permission_add_issues: Dodaj predmete 
343
  permission_add_private_issues: Add private issues
344
  permission_view_private_issues: View private issues
342 345
  permission_edit_issues: Uredi predmete
343 346
  permission_manage_issue_relations: Upravljaj relacijama predmeta
344 347
  permission_add_issue_notes: Dodaj bilješke 
......
509 512
  label_public_projects: Javni projekti
510 513
  label_open_issues: Otvoren
511 514
  label_open_issues_plural: Otvoreno
515
  label_private_issues: private
516
  label_private_issues_plural: private
512 517
  label_closed_issues: Zatvoren
513 518
  label_closed_issues_plural: Zatvoreno
514 519
  label_x_open_issues_abbr_on_total:
redmine/config/locales/hu.yml 2010-04-23 16:56:13.703584023 +0400
434 434
  label_public_projects: Nyilvános projektek
435 435
  label_open_issues: nyitott
436 436
  label_open_issues_plural: nyitott
437
  label_private_issues: private
438
  label_private_issues_plural: private
437 439
  label_closed_issues: lezárt
438 440
  label_closed_issues_plural: lezárt
439 441
  label_x_open_issues_abbr_on_total:
......
747 749
  setting_mail_handler_api_key: API kulcs
748 750
  text_email_delivery_not_configured: "Az E-mail küldés nincs konfigurálva, és az értesítések ki vannak kapcsolva.\nÁllítsd be az SMTP szervert a config/email.yml fájlban és indítsd újra az alkalmazást, hogy érvénybe lépjen."
749 751
  field_parent_title: Szülő oldal
752
  field_is_private: Private issue
750 753
  label_issue_watchers: Megfigyelők
751 754
  setting_commit_logs_encoding: Commit üzenetek kódlapja
752 755
  button_quote: Hozzászólás / Idézet / Kérdés
......
760 763
  permission_edit_own_time_entries: Saját időnapló szerkesztése
761 764
  permission_manage_public_queries: Nyilvános kérések kezelése
762 765
  permission_add_issues: Feladat felvétele
766
  permission_add_private_issues: Add private issues
767
  permission_view_private_issues: View private issues
763 768
  permission_log_time: Idő rögzítése
764 769
  permission_view_changesets: Változáskötegek megtekintése
765 770
  permission_view_time_entries: Időrögzítések megtekintése
redmine/config/locales/id.yml 2010-04-23 16:56:13.753588934 +0400
273 273
  field_default_value: Nilai default
274 274
  field_comments_sorting: Tampilkan komentar
275 275
  field_parent_title: Halaman induk
276
  field_is_private: Private issue
276 277
  field_editable: Dapat disunting
277 278
  field_watcher: Pemantau
278 279
  field_identity_url: OpenID URL
......
334 335
  permission_manage_versions: Atur versi
335 336
  permission_manage_categories: Atur kategori masalah
336 337
  permission_add_issues: Tambahkan masalah
338
  permission_add_private_issues: Add private issues
339
  permission_view_private_issues: View private issues
337 340
  permission_edit_issues: Sunting masalah
338 341
  permission_manage_issue_relations: Atur kaitan masalah
339 342
  permission_add_issue_notes: Tambahkan catatan
......
503 506
  label_public_projects: Proyek publik
504 507
  label_open_issues: belum selesai
505 508
  label_open_issues_plural: belum selesai
509
  label_private_issues: private
510
  label_private_issues_plural: private
506 511
  label_closed_issues: selesai
507 512
  label_closed_issues_plural: selesai
508 513
  label_x_open_issues_abbr_on_total:
redmine/config/locales/it.yml 2010-04-23 16:56:13.795587858 +0400
373 373
  label_public_projects: Progetti pubblici
374 374
  label_open_issues: aperta
375 375
  label_open_issues_plural: aperte
376
  label_private_issues: private
377
  label_private_issues_plural: private
376 378
  label_closed_issues: chiusa
377 379
  label_closed_issues_plural: chiuse
378 380
  label_x_open_issues_abbr_on_total:
......
729 731
  setting_mail_handler_api_key: Chiave API
730 732
  text_email_delivery_not_configured: "La consegna via e-mail non è configurata e le notifiche sono disabilitate.\nConfigura il tuo server SMTP in config/email.yml e riavvia l'applicazione per abilitarle."
731 733
  field_parent_title: Parent page
734
  field_is_private: Private issue
732 735
  label_issue_watchers: Osservatori
733 736
  setting_commit_logs_encoding: Codifica dei messaggi di commit
734 737
  button_quote: Quota
......
742 745
  permission_edit_own_time_entries: Modifica propri time logs
743 746
  permission_manage_public_queries: Gestisci query pubbliche
744 747
  permission_add_issues: Aggiungi segnalazioni
748
  permission_add_private_issues: Add private issues
749
  permission_view_private_issues: View private issues
745 750
  permission_log_time: Segna tempo impiegato
746 751
  permission_view_changesets: Vedi changesets
747 752
  permission_view_time_entries: Vedi tempi impiegati
......
894 899
  permission_export_wiki_pages: Export wiki pages
895 900
  setting_cache_formatted_text: Cache formatted text
896 901
  permission_manage_project_activities: Manage project activities
897
 
902
 
redmine/config/locales/ja.yml 2010-04-23 16:56:13.837594341 +0400
301 301
  field_default_value: デフォルト値
302 302
  field_comments_sorting: コメントを表示
303 303
  field_parent_title: 親ページ
304
  field_is_private: Private issue
304 305
  field_editable: 編集可能
305 306
  field_watcher: ウォッチャー
306 307
  field_identity_url: OpenID URL
......
371 372
  permission_manage_categories: チケットのカテゴリの管理
372 373
  permission_view_issues: チケットの閲覧
373 374
  permission_add_issues: チケットの追加
375
  permission_add_private_issues: Add private issues
376
  permission_view_private_issues: View private issues
374 377
  permission_edit_issues: チケットの編集
375 378
  permission_manage_issue_relations: チケットの管理
376 379
  permission_add_issue_notes: 注記の追加
......
542 545
  label_public_projects: 公開プロジェクト
543 546
  label_open_issues: 未完了
544 547
  label_open_issues_plural: 未完了
548
  label_private_issues: private
549
  label_private_issues_plural: private
545 550
  label_closed_issues: 完了
546 551
  label_closed_issues_plural: 完了
547 552
  label_x_open_issues_abbr_on_total:
redmine/config/locales/ko.yml 2010-04-23 16:56:13.839593793 +0400
321 321
  field_searchable: 검색가능
322 322
  field_comments_sorting: 댓글 정렬
323 323
  field_parent_title: 상위 제목
324
  field_is_private: Private issue
324 325
  field_editable: 편집가능
325 326
  field_watcher: 일감지킴이
326 327
  field_identity_url: OpenID URL
......
379 380
  permission_manage_versions: 버전 관리
380 381
  permission_manage_categories: 일감 범주 관리
381 382
  permission_add_issues: 일감 추가
383
  permission_add_private_issues: Add private issues
384
  permission_view_private_issues: View private issues
382 385
  permission_edit_issues: 일감 편집
383 386
  permission_manage_issue_relations: 일감 관계 관리
384 387
  permission_add_issue_notes: 덧글 추가
......
545 548
  label_public_projects: 공개 프로젝트
546 549
  label_open_issues: 진행중
547 550
  label_open_issues_plural: 진행중
551
  label_private_issues: private
552
  label_private_issues_plural: private
548 553
  label_closed_issues: 완료됨
549 554
  label_closed_issues_plural: 완료됨
550 555
  label_x_open_issues_abbr_on_total:
redmine/config/locales/lt.yml 2010-04-23 16:56:13.871595088 +0400
332 332
  field_default_value: Numatytoji vertė
333 333
  field_comments_sorting: rodyti komentarus
334 334
  field_parent_title: Aukštesnio lygio puslapis
335
  field_is_private: Private issue
335 336
  field_editable: Redaguojamas
336 337
  field_watcher: Stebėtojas
337 338
  field_identity_url: OpenID URL
......
394 395
  permission_manage_versions: Valdyti versijas
395 396
  permission_manage_categories: Valdyti darbų kategorijas
396 397
  permission_add_issues: Sukurti darbus
398
  permission_add_private_issues: Add private issues
399
  permission_view_private_issues: View private issues
397 400
  permission_edit_issues: Redaguoti darbus
398 401
  permission_manage_issue_relations: Valdyti darbų ryšius
399 402
  permission_add_issue_notes: Sukurti pastabas
......
562 565
  label_public_projects: Vieši projektai
563 566
  label_open_issues: atidaryta
564 567
  label_open_issues_plural: atidaryti
568
  label_private_issues: private
569
  label_private_issues_plural: private
565 570
  label_closed_issues: uždaryta
566 571
  label_closed_issues_plural: uždaryti
567 572
  label_x_open_issues_abbr_on_total:
redmine/config/locales/nl.yml 2010-04-23 16:56:13.888599115 +0400
239 239
  field_onthefly: On-the-fly aanmaken van een gebruiker
240 240
  field_parent: Subproject van
241 241
  field_parent_title: Bovenliggende pagina
242
  field_is_private: Private issue
242 243
  field_password: Wachtwoord
243 244
  field_password_confirmation: Bevestigen
244 245
  field_port: Port
......
477 478
  label_not_equals: is niet gelijk
478 479
  label_open_issues: open
479 480
  label_open_issues_plural: open
481
  label_private_issues: private
482
  label_private_issues_plural: private
480 483
  label_optional_description: Optionele beschrijving
481 484
  label_options: Opties
482 485
  label_overall_activity: Activiteit
......
629 632
  permission_add_issue_notes: Voeg notities toe
630 633
  permission_add_issue_watchers: Voeg monitors toe
631 634
  permission_add_issues: Voeg issues toe
635
  permission_add_private_issues: Add private issues
636
  permission_view_private_issues: View private issues
632 637
  permission_add_messages: Voeg berichten toe
633 638
  permission_browse_repository: Repository doorbladeren
634 639
  permission_comment_news: Nieuws commentaar geven
redmine/config/locales/no.yml 2010-04-23 16:56:13.906603267 +0400
407 407
  label_public_projects: Offentlige prosjekt
408 408
  label_open_issues: åpen
409 409
  label_open_issues_plural: åpne
410
  label_private_issues: private
411
  label_private_issues_plural: private
410 412
  label_closed_issues: lukket
411 413
  label_closed_issues_plural: lukkede
412 414
  label_x_open_issues_abbr_on_total:
......
717 719
  setting_mail_handler_api_key: API key
718 720
  text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
719 721
  field_parent_title: Parent page
722
  field_is_private: Private issue
720 723
  label_issue_watchers: Watchers
721 724
  setting_commit_logs_encoding: Commit messages encoding
722 725
  button_quote: Quote
......
730 733
  permission_edit_own_time_entries: Edit own time logs
731 734
  permission_manage_public_queries: Manage public queries
732 735
  permission_add_issues: Add issues
736
  permission_add_private_issues: Add private issues
737
  permission_view_private_issues: View private issues
733 738
  permission_log_time: Log spent time
734 739
  permission_view_changesets: View changesets
735 740
  permission_view_time_entries: View spent time
redmine/config/locales/pl.yml 2010-04-23 16:56:13.933605129 +0400
264 264
  field_onthefly: Tworzenie użytkownika w locie
265 265
  field_parent: Nadprojekt
266 266
  field_parent_title: Strona rodzica
267
  field_is_private: Private issue
267 268
  field_password: Hasło
268 269
  field_password_confirmation: Potwierdzenie
269 270
  field_port: Port
......
514 515
  label_not_equals: różni się
515 516
  label_open_issues: otwarte
516 517
  label_open_issues_plural234: otwarte
518
  label_private_issues: private
519
  label_private_issues_plural: private
517 520
  label_open_issues_plural5: otwarte
518 521
  label_open_issues_plural: otwarte
519 522
  label_optional_description: Opcjonalny opis
......
668 671
  permission_add_issue_notes: Dodawanie notatek
669 672
  permission_add_issue_watchers: Dodawanie obserwatorów
670 673
  permission_add_issues: Dodawanie zagadnień
674
  permission_add_private_issues: Add private issues
675
  permission_view_private_issues: View private issues
671 676
  permission_add_messages: Dodawanie wiadomości
672 677
  permission_browse_repository: Przeglądanie repozytorium
673 678
  permission_comment_news: Komentowanie komunikatów
redmine/config/locales/pt-BR.yml 2010-04-23 16:56:13.967605989 +0400
286 286
  field_default_value: Padrão
287 287
  field_comments_sorting: Visualizar comentários
288 288
  field_parent_title: Página pai
289
  field_is_private: Private issue
289 290

  
290 291
  setting_app_title: Título da aplicação
291 292
  setting_app_subtitle: Sub-título da aplicação
......
445 446
  label_public_projects: Projetos públicos
446 447
  label_open_issues: Aberta
447 448
  label_open_issues_plural: Abertas
449
  label_private_issues: private
450
  label_private_issues_plural: private
448 451
  label_closed_issues: Fechada
449 452
  label_closed_issues_plural: Fechadas
450 453
  label_x_open_issues_abbr_on_total:
......
763 766
  permission_edit_own_time_entries: Editar o próprio tempo de trabalho
764 767
  permission_manage_public_queries: Gerenciar consultas publicas
765 768
  permission_add_issues: Adicionar tarefas
769
  permission_add_private_issues: Add private issues
770
  permission_view_private_issues: View private issues
766 771
  permission_log_time: Adicionar tempo gasto
767 772
  permission_view_changesets: Ver changesets
768 773
  permission_view_time_entries: Ver tempo gasto
redmine/config/locales/pt.yml 2010-04-23 16:56:14.055602412 +0400
271 271
  field_default_value: Valor por omissão
272 272
  field_comments_sorting: Mostrar comentários
273 273
  field_parent_title: Página pai
274
  field_is_private: Private issue
274 275
  
275 276
  setting_app_title: Título da aplicação
276 277
  setting_app_subtitle: Sub-título da aplicação
......
430 431
  label_public_projects: Projectos públicos
431 432
  label_open_issues: aberto
432 433
  label_open_issues_plural: abertos
434
  label_private_issues: private
435
  label_private_issues_plural: private
433 436
  label_closed_issues: fechado
434 437
  label_closed_issues_plural: fechados
435 438
  label_x_open_issues_abbr_on_total:
......
747 750
  permission_edit_own_time_entries: Editar horas pessoais
748 751
  permission_manage_public_queries: Gerir queries públicas
749 752
  permission_add_issues: Adicionar tarefas
753
  permission_add_private_issues: Add private issues
754
  permission_view_private_issues: View private issues
750 755
  permission_log_time: Registar tempo gasto
751 756
  permission_view_changesets: Ver changesets
752 757
  permission_view_time_entries: Ver tempo gasto
redmine/config/locales/ro.yml 2010-04-23 16:56:14.097601318 +0400
254 254
  field_default_value: Valoare implicita
255 255
  field_comments_sorting: Afișează comentarii
256 256
  field_parent_title: Pagina superioara
257
  field_is_private: Private issue
257 258
  field_editable: Modificabil
258 259
  field_watcher: Urmărește
259 260
  field_identity_url: URL OpenID
......
308 309
  permission_manage_versions: Editează versiuni
309 310
  permission_manage_categories: Editează categorii
310 311
  permission_add_issues: Adaugă tichete
312
  permission_add_private_issues: Add private issues
313
  permission_view_private_issues: View private issues
311 314
  permission_edit_issues: Editează tichete
312 315
  permission_manage_issue_relations: Editează relații tichete
313 316
  permission_add_issue_notes: Adaugă note
......
474 477
  label_public_projects: Proiecte publice
475 478
  label_open_issues: deschis
476 479
  label_open_issues_plural: deschise
480
  label_private_issues: private
481
  label_private_issues_plural: private
477 482
  label_closed_issues: închis
478 483
  label_closed_issues_plural: închise
479 484
  label_x_open_issues_abbr_on_total:
redmine/config/locales/ru.yml 2010-04-23 16:56:14.139600008 +0400
346 346
  field_port: Порт
347 347
  field_possible_values: Возможные значения
348 348
  field_priority: Приоритет
349
  field_is_private: Частная задача
349 350
  field_project: Проект
350 351
  field_redirect_existing_links: Перенаправить существующие ссылки
351 352
  field_regexp: Регулярное выражение
......
585 586
  label_not_contains: не содержит
586 587
  label_not_equals: не соответствует
587 588
  label_open_issues: открыт
589
  label_private_issues_plural2: частных
590
  label_private_issues_plural5: частных
591
  label_private_issues_plural: частных
592
  label_private_issues: частная
588 593
  label_open_issues_plural: открыто
589 594
  label_open_issues_plural2: открыто
590 595
  label_open_issues_plural5: открыто
......
762 767

  
763 768
  permission_add_issues: Добавление задач
764 769
  permission_add_issue_notes: Добавление примечаний
770
  permission_add_private_issues: Добавление частных задач
771
  permission_view_private_issues: Просмотр частных задач
765 772
  permission_add_issue_watchers: Добавление наблюдателей
766 773
  permission_add_messages: Отправка сообщений
767 774
  permission_browse_repository: Просмотр хранилища
redmine/config/locales/sk.yml 2010-04-23 16:56:14.141599803 +0400
405 405
  label_public_projects: Verejné projekty
406 406
  label_open_issues: Otvorený
407 407
  label_open_issues_plural: Otvorené
408
  label_private_issues: private
409
  label_private_issues_plural: private
408 410
  label_closed_issues: Uzavrený
409 411
  label_closed_issues_plural: Uzavrené
410 412
  label_x_open_issues_abbr_on_total:
......
720 722
  setting_mail_handler_api_key: API kľúč
721 723
  text_email_delivery_not_configured: "Doručenie emailov nieje nastavené, notifikácie sú vypnuté.\nNastavte váš SMTP server v config/email.yml a reštartnite aplikáciu pre aktiváciu funkcie."
722 724
  field_parent_title: Nadradená stránka
725
  field_is_private: Private issue
723 726
  label_issue_watchers: Pozorovatelia
724 727
  setting_commit_logs_encoding: Kódovanie prenášaných správ
725 728
  button_quote: Citácia
......
733 736
  permission_edit_own_time_entries: Úprava vlastných zaznamov o strávenom čase
734 737
  permission_manage_public_queries: Správa verejných otáziek
735 738
  permission_add_issues: Pridanie úlohy
739
  permission_add_private_issues: Add private issues
740
  permission_view_private_issues: View private issues
736 741
  permission_log_time: Zaznamenávanie stráveného času
737 742
  permission_view_changesets: Zobrazenie sád zmien
738 743
  permission_view_time_entries: Zobrazenie stráveného času
redmine/config/locales/sl.yml 2010-04-23 16:56:14.171601064 +0400
254 254
  field_default_value: Privzeta vrednost
255 255
  field_comments_sorting: Prikaži komentarje
256 256
  field_parent_title: Matična stran
257
  field_is_private: Private issue
257 258
  
258 259
  setting_app_title: Naslov aplikacije
259 260
  setting_app_subtitle: Podnaslov aplikacije
......
301 302
  permission_manage_versions: Uredi verzije
302 303
  permission_manage_categories: Urejanje kategorij zahtevkov
303 304
  permission_add_issues: Dodaj zahtevke
305
  permission_add_private_issues: Add private issues
306
  permission_view_private_issues: View private issues
304 307
  permission_edit_issues: Uredi zahtevke
305 308
  permission_manage_issue_relations: Uredi odnose med zahtevki
306 309
  permission_add_issue_notes: Dodaj zabeležke
......
466 469
  label_public_projects: Javni projekti
467 470
  label_open_issues: odpri zahtevek
468 471
  label_open_issues_plural: odpri zahtevke
472
  label_private_issues: private
473
  label_private_issues_plural: private
469 474
  label_closed_issues: zapri zahtevek
470 475
  label_closed_issues_plural: zapri zahtevke
471 476
  label_x_open_issues_abbr_on_total:
redmine/config/locales/sr.yml 2010-04-23 16:56:14.188605464 +0400
389 389
  label_public_projects: Javni projekti
390 390
  label_open_issues: Otvoren
391 391
  label_open_issues_plural: Otvoreno
392
  label_private_issues: private
393
  label_private_issues_plural: private
392 394
  label_closed_issues: Zatvoren
393 395
  label_closed_issues_plural: Zatvoreno
394 396
  label_x_open_issues_abbr_on_total:
......
738 740
  setting_mail_handler_api_key: API key
739 741
  text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
740 742
  field_parent_title: Parent page
743
  field_is_private: Private issue
741 744
  label_issue_watchers: Posmatrači
742 745
  setting_commit_logs_encoding: Commit messages encoding
743 746
  button_quote: Quote
......
751 754
  permission_edit_own_time_entries: Edit own time logs
752 755
  permission_manage_public_queries: Manage public queries
753 756
  permission_add_issues: Add issues
757
  permission_add_private_issues: Add private issues
758
  permission_view_private_issues: View private issues
754 759
  permission_log_time: Log spent time
755 760
  permission_view_changesets: View changesets
756 761
  permission_view_time_entries: View spent time
redmine/config/locales/sv.yml 2010-04-23 16:56:14.206609256 +0400
321 321
  field_default_value: Standardvärde
322 322
  field_comments_sorting: Visa kommentarer
323 323
  field_parent_title: Föräldersida
324
  field_is_private: Private issue
324 325
  field_editable: Redigerbar
325 326
  field_watcher: Bevakare  
326 327
  field_identity_url: OpenID URL
......
389 390
  permission_manage_versions: Hantera versioner
390 391
  permission_manage_categories: Hantera ärendekategorier
391 392
  permission_add_issues: Lägga till ärenden
393
  permission_add_private_issues: Add private issues
394
  permission_view_private_issues: View private issues
392 395
  permission_edit_issues: Ändra ärenden
393 396
  permission_view_issues: Visa ärenden
394 397
  permission_manage_issue_relations: Hantera ärenderelationer
......
560 563
  label_public_projects: Publika projekt
561 564
  label_open_issues: öppen
562 565
  label_open_issues_plural: öppna
566
  label_private_issues: private
567
  label_private_issues_plural: private
563 568
  label_closed_issues: stängd
564 569
  label_closed_issues_plural: stängda
565 570
  label_x_open_issues_abbr_on_total:
redmine/config/locales/th.yml 2010-04-23 16:56:14.232611780 +0400
405 405
  label_public_projects: โครงการสาธารณะ
406 406
  label_open_issues: เปิด
407 407
  label_open_issues_plural: เปิด
408
  label_private_issues: private
409
  label_private_issues_plural: private
408 410
  label_closed_issues: ปิด
409 411
  label_closed_issues_plural: ปิด
410 412
  label_x_open_issues_abbr_on_total:
......
719 721
  setting_mail_handler_api_key: API key
720 722
  text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
721 723
  field_parent_title: Parent page
724
  field_is_private: Private issue
722 725
  label_issue_watchers: Watchers
723 726
  setting_commit_logs_encoding: Commit messages encoding
724 727
  button_quote: Quote
......
732 735
  permission_edit_own_time_entries: Edit own time logs
733 736
  permission_manage_public_queries: Manage public queries
734 737
  permission_add_issues: Add issues
738
  permission_add_private_issues: Add private issues
739
  permission_view_private_issues: View private issues
735 740
  permission_log_time: Log spent time
736 741
  permission_view_changesets: View changesets
737 742
  permission_view_time_entries: View spent time
redmine/config/locales/tr.yml 2010-04-23 16:56:14.268611878 +0400
434 434
  label_public_projects: Genel Projeler
435 435
  label_open_issues: açık
436 436
  label_open_issues_plural: açık
437
  label_private_issues: private
438
  label_private_issues_plural: private
437 439
  label_closed_issues: kapalı
438 440
  label_closed_issues_plural: kapalı
439 441
  label_x_open_issues_abbr_on_total:
......
740 742
  label_generate_key: Generate a key
741 743
  setting_sequential_project_identifiers: Generate sequential project identifiers
742 744
  field_parent_title: Parent page
745
  field_is_private: Private issue
743 746
  text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
744 747
  text_enumeration_category_reassign_to: 'Reassign them to this value:'
745 748
  label_issue_watchers: Watchers
......
762 765
  permission_edit_own_time_entries: Edit own time logs
763 766
  permission_manage_public_queries: Manage public queries
764 767
  permission_add_issues: Add issues
768
  permission_add_private_issues: Add private issues
769
  permission_view_private_issues: View private issues
765 770
  permission_log_time: Log spent time
766 771
  permission_view_changesets: View changesets
767 772
  permission_view_time_entries: View spent time
redmine/config/locales/uk.yml 2010-04-23 16:56:14.356600479 +0400
375 375
  label_public_projects: Публічні проекти
376 376
  label_open_issues: відкрите
377 377
  label_open_issues_plural: відкриті
378
  label_private_issues: private
379
  label_private_issues_plural: private
378 380
  label_closed_issues: закрите
379 381
  label_closed_issues_plural: закриті
380 382
  label_x_open_issues_abbr_on_total:
......
718 720
  setting_mail_handler_api_key: API key
719 721
  text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
720 722
  field_parent_title: Parent page
723
  field_is_private: Private issue
721 724
  label_issue_watchers: Watchers
722 725
  setting_commit_logs_encoding: Commit messages encoding
723 726
  button_quote: Quote
......
731 734
  permission_edit_own_time_entries: Edit own time logs
732 735
  permission_manage_public_queries: Manage public queries
733 736
  permission_add_issues: Add issues
737
  permission_add_private_issues: Add private issues
738
  permission_view_private_issues: View private issues
734 739
  permission_log_time: Log spent time
735 740
  permission_view_changesets: View changesets
736 741
  permission_view_time_entries: View spent time
redmine/config/locales/vi.yml 2010-04-23 16:56:14.398599549 +0400
316 316
  field_default_value: Giá trị mặc định
317 317
  field_comments_sorting: Liệt kê bình luận
318 318
  field_parent_title: Trang mẹ
319
  field_is_private: Private issue
319 320
  
320 321
  setting_app_title: Tựa đề ứng dụng
321 322
  setting_app_subtitle: Tựa đề nhỏ của ứng dụng
......
475 476
  label_public_projects: Các dự án công cộng
476 477
  label_open_issues: mở
477 478
  label_open_issues_plural: mở
479
  label_private_issues: private
480
  label_private_issues_plural: private
478 481
  label_closed_issues: đóng
479 482
  label_closed_issues_plural: đóng
480 483
  label_x_open_issues_abbr_on_total:
......
795 798
  permission_manage_versions: Quản lý phiên bản
796 799
  permission_manage_categories: Quản lý chủ đề
797 800
  permission_add_issues: Thêm vấn đề
801
  permission_add_private_issues: Add private issues
802
  permission_view_private_issues: View private issues
798 803
  permission_edit_issues: Sửa vấn đề
799 804
  permission_manage_issue_relations: Quản lý quan hệ vấn đề
800 805
  permission_add_issue_notes: Thêm chú thích
redmine/config/locales/zh-TW.yml 2010-04-23 16:56:14.440606118 +0400
362 362
  field_default_value: 預設值
363 363
  field_comments_sorting: 註解排序
364 364
  field_parent_title: 父頁面
365
  field_is_private: Private issue
365 366
  field_editable: 可編輯
366 367
  field_watcher: 觀察者
367 368
  field_identity_url: OpenID 網址
......
431 432
  permission_manage_categories: 管理項目分類
432 433
  permission_view_issues: 檢視項目
433 434
  permission_add_issues: 新增項目
435
  permission_add_private_issues: Add private issues
436
  permission_view_private_issues: View private issues
434 437
  permission_edit_issues: 編輯項目
435 438
  permission_manage_issue_relations: 管理項目關聯
436 439
  permission_add_issue_notes: 新增筆記
......
602 605
  label_public_projects: 公開專案
603 606
  label_open_issues: 進行中
604 607
  label_open_issues_plural: 進行中
608
  label_private_issues: private
609
  label_private_issues_plural: private
605 610
  label_closed_issues: 已結束
606 611
  label_closed_issues_plural: 已結束
607 612
  label_x_open_issues_abbr_on_total:
redmine/config/locales/zh.yml 2010-04-23 16:56:14.481613357 +0400
294 294
  field_default_value: 默认值
295 295
  field_comments_sorting: 显示注释
296 296
  field_parent_title: 上级页面
297
  field_is_private: Private issue
297 298
  field_editable: 可编辑
298 299
  field_watcher: 跟踪者
299 300
  field_identity_url: OpenID URL
......
363 364
  permission_manage_categories: 管理问题类别
364 365
  permission_view_issues: 查看问题
365 366
  permission_add_issues: 新建问题
367
  permission_add_private_issues: Add private issues
368
  permission_view_private_issues: View private issues
366 369
  permission_edit_issues: 更新问题
367 370
  permission_manage_issue_relations: 管理问题关联
368 371
  permission_add_issue_notes: 添加说明
......
533 536
  label_public_projects: 公开的项目
534 537
  label_open_issues: 打开
535 538
  label_open_issues_plural: 打开
539
  label_private_issues: private
540
  label_private_issues_plural: private
536 541
  label_closed_issues: 已关闭
537 542
  label_closed_issues_plural: 已关闭
538 543
  label_x_open_issues_abbr_on_total:
......
909 914
  permission_export_wiki_pages: Export wiki pages
910 915
  setting_cache_formatted_text: Cache formatted text
911 916
  permission_manage_project_activities: Manage project activities
912
 
917
 
redmine/db/migrate/109_add_issues_private_flag.rb 2010-04-17 12:04:23.295584721 +0400
1
class AddIssuesPrivateFlag < ActiveRecord::Migration
2
  def self.up
3
    add_column :issues, :is_private, :boolean, :default => false, :null => false
4
  end
5

  
6
  def self.down
7
    remove_column :issues, :is_private
8
  end
9
end
redmine/lib/redmine.rb 2010-04-17 15:21:50.023014599 +0400
44 44
                                  :queries => :index,
45 45
                                  :reports => :issue_report}
46 46
    map.permission :add_issues, {:issues => [:new, :update_form]}
47
    map.permission :add_private_issues, {:issues => [:new, :update_form]}, :require => :loggedin
48
    map.permission :view_private_issues, {}, :require => :member
47 49
    map.permission :edit_issues, {:issues => [:edit, :reply, :bulk_edit, :update_form]}
48 50
    map.permission :manage_issue_relations, {:issue_relations => [:new, :destroy]}
49 51
    map.permission :add_issue_notes, {:issues => [:edit, :reply]}
redmine/test/fixtures/issues.yml 2010-04-23 17:45:55.155305374 +0400
203 203
  assigned_to_id: 
204 204
  author_id: 2
205 205
  status_id: 1
206
issues_014: 
207
  created_on: <%= 5.days.ago.to_date.to_s(:db) %>
208
  project_id: 1
209
  updated_on: <%= 2.days.ago.to_date.to_s(:db) %>
210
  priority_id: 5
211
  subject: Private Issue
212
  id: 14
213
  fixed_version_id: 
214
  category_id: 
215
  description: Private Issue
216
  tracker_id: 1
217
  assigned_to_id: 
218
  author_id: 12
219
  status_id: 1
220
  is_private: 1
redmine/test/fixtures/member_roles.yml 2010-04-17 12:04:23.296584517 +0400
47 47
  role_id: 2
48 48
  member_id: 10
49 49
  inherited_from: 10
50
member_roles_012: 
51
  id: 12
52
  role_id: 3
53
  member_id: 11
54
  inherited_from: 11
55
member_roles_013: 
56
  id: 13
57
  role_id: 6
58
  member_id: 12
59
  inherited_from: 12
redmine/test/fixtures/members.yml 2010-04-17 12:04:23.297584144 +0400
60 60
  project_id: 2
61 61
  user_id: 8
62 62
  mail_notification: false
63
members_011: 
64
  id: 11
65
  created_on: 2006-07-19 19:35:37 +02:00
66
  project_id: 1
67
  user_id: 12
68
members_012: 
69
  id: 12
70
  created_on: 2006-07-19 19:35:47 +02:00
71
  project_id: 1
72
  user_id: 13
redmine/test/fixtures/roles.yml 2010-04-17 12:04:23.297584144 +0400
12 12
    - :manage_categories
13 13
    - :view_issues
14 14
    - :add_issues
15
    - :add_private_issues
16
    - :view_private_issues
15 17
    - :edit_issues
16 18
    - :manage_issue_relations
17 19
    - :add_issue_notes
......
63 65
    - :manage_categories
64 66
    - :view_issues
65 67
    - :add_issues
68
    - :view_private_issues
66 69
    - :edit_issues
67 70
    - :manage_issue_relations
68 71
    - :add_issue_notes
......
106 109
    - :manage_categories
107 110
    - :view_issues
108 111
    - :add_issues
112
    - :add_private_issues
109 113
    - :edit_issues
110 114
    - :manage_issue_relations
111 115
    - :add_issue_notes
......
181 185
    - :view_changesets
182 186

  
183 187
  position: 5
188
roles_006: 
189
  name: Reporter2
190
  id: 6
191
  builtin: 0
192
  permissions: |
193
    --- 
194
    - :edit_project
195
    - :manage_members
196
    - :manage_versions
197
    - :manage_categories
198
    - :view_issues
199
    - :add_private_issues
200
    - :edit_issues
201
    - :manage_issue_relations
202
    - :add_issue_notes
203
    - :move_issues
204
    - :view_issue_watchers
205
    - :save_queries
206
    - :view_gantt
207
    - :view_calendar
208
    - :log_time
209
    - :view_time_entries
210
    - :manage_news
211
    - :comment_news
212
    - :view_documents
213
    - :manage_documents
214
    - :view_wiki_pages
215
    - :view_wiki_edits
216
    - :edit_wiki_pages
217
    - :delete_wiki_pages
218
    - :add_messages
219
    - :manage_boards
220
    - :view_files
221
    - :manage_files
222
    - :browse_repository
223
    - :view_changesets
184 224

  
225
  position: 6
redmine/test/fixtures/users.yml 2010-04-17 12:04:23.298583951 +0400
152 152
  id: 11
153 153
  lastname: B Team
154 154
  type: Group
155

  
156
  
155
users_012:
156
  id: 12
157
  created_on: 2009-01-27 01:20:19 +03:00
158
  status: 1
159
  last_login_on:
160
  language: 'ru'
161
  hashed_password: 7feb7657aa7a7bf5aef3414a5084875f27192415
162
  updated_on: 2009-01-27 19:33:19 +03:00
163
  admin: false
164
  mail: vasja@somenet.foo
165
  lastname: Pupkin
166
  firstname: Vasja
167
  auth_source_id:
168
  mail_notification: true
169
  login: vasiliy
170
  type: User
171
users_013:
172
  id: 13
173
  created_on: 2009-01-27 01:20:29 +03:00
174
  status: 1
175
  last_login_on:
176
  language: 'ru'
177
  hashed_password: 7feb7657aa7a7bf5aef3414a5084875f27192416
178
  updated_on: 2009-01-27 19:33:29 +03:00
179
  admin: false
180
  mail: petia@somenet.foo
181
  lastname: Pupkin
182
  firstname: Petia
183
  auth_source_id:
184
  mail_notification: true
185
  login: petr
186
  type: User
redmine/test/functional/issues_controller_test.rb 2010-04-23 17:45:55.156305111 +0400
411 411
  
412 412
  def test_show_should_deny_member_access_without_permission
413 413
    Role.find(1).remove_permission!(:view_issues)
414
    Role.find(1).remove_permission!(:view_private_issues)
414 415
    @request.session[:user_id] = 2
415 416
    get :show, :id => 1
416 417
    assert_response 403
......
458 459
    assert_not_nil assigns(:issue)
459 460
  end
460 461

  
462
  def test_show_private_issue_by_manager
463
    @request.session[:user_id] = 2
464
    get :show, :id => 14
465
    assert_response :success
466
    assert_tag :td, :attributes => { :class => 'private-issue'}
467
  end
468

  
469
  def test_show_private_issue_by_admin
470
    @request.session[:user_id] = 1
471
    get :show, :id => 14
... This diff was truncated because it exceeds the maximum size that can be displayed.
(13-13/17)