diff -ur redmine-0.9.3/app/controllers/projects_controller.rb redmine/app/controllers/projects_controller.rb --- redmine-0.9.3/app/controllers/projects_controller.rb 2010-02-28 13:28:06.000000000 +0300 +++ redmine/app/controllers/projects_controller.rb 2010-04-17 12:03:41.766822222 +0400 @@ -137,6 +137,9 @@ @open_issues_by_tracker = Issue.visible.count(:group => :tracker, :include => [:project, :status, :tracker], :conditions => ["(#{cond}) AND #{IssueStatus.table_name}.is_closed=?", false]) + @private_issues_by_tracker = Issue.count(:group => :tracker, + :include => [:project, :status, :tracker], + :conditions => ["(#{cond}) AND #{IssueStatus.table_name}.is_closed=? AND #{Issue.table_name}.is_private=?", false, true]) @total_issues_by_tracker = Issue.visible.count(:group => :tracker, :include => [:project, :status, :tracker], :conditions => cond) @@ -349,6 +352,11 @@ @activity.scope = (@author.nil? ? :default : :all) if @activity.scope.empty? events = @activity.events(@date_from, @date_to) + + # The private issues should be removed from events + events.each do |event| + events.delete(event) if event.kind_of?(Issue) && !event.visible?(User.current, Project.find(event.project)) + end if events.empty? || stale?(:etag => [events.first, User.current]) respond_to do |format| diff -ur redmine-0.9.3/app/helpers/issues_helper.rb redmine/app/helpers/issues_helper.rb --- redmine-0.9.3/app/helpers/issues_helper.rb 2010-02-28 13:28:05.000000000 +0300 +++ redmine/app/helpers/issues_helper.rb 2010-04-17 12:03:41.804829795 +0400 @@ -153,6 +153,7 @@ l(:field_priority), l(:field_subject), l(:field_assigned_to), + l(:field_is_private), l(:field_category), l(:field_fixed_version), l(:field_author), @@ -179,6 +180,7 @@ issue.priority.name, issue.subject, issue.assigned_to, + issue.is_private, issue.category, issue.fixed_version, issue.author.name, diff -ur redmine-0.9.3/app/models/issue.rb redmine/app/models/issue.rb --- redmine-0.9.3/app/models/issue.rb 2010-02-28 13:28:06.000000000 +0300 +++ redmine/app/models/issue.rb 2010-04-17 12:10:53.989369460 +0400 @@ -62,8 +62,8 @@ after_save :create_journal # Returns true if usr or current user is allowed to view the issue - def visible?(usr=nil) - (usr || User.current).allowed_to?(:view_issues, self.project) + def visible?(usr=User.current, project=self.project) + usr.allowed_to?(:view_issues, project) && (is_private==false || usr.allowed_to?(:view_private_issues, project) || author == usr || assigned_to == usr || watched_by?(usr)) end def after_initialize @@ -212,10 +212,15 @@ end def before_create - # default assignment based on category + # default assignment based on category and is_private if assigned_to.nil? && category && category.assigned_to self.assigned_to = category.assigned_to end + if author.allowed_to?(:add_private_issues, self.project) + self.is_private=1 unless author.allowed_to?(:add_issues, self.project) + else + self.is_private=0 + end end # Set the done_ratio using the status if that setting is set. This will keep the done_ratios diff -ur redmine-0.9.3/app/models/query.rb redmine/app/models/query.rb --- redmine-0.9.3/app/models/query.rb 2010-02-28 13:28:06.000000000 +0300 +++ redmine/app/models/query.rb 2010-04-17 12:03:42.100804719 +0400 @@ -127,6 +127,7 @@ QueryColumn.new(:assigned_to, :sortable => ["#{User.table_name}.lastname", "#{User.table_name}.firstname", "#{User.table_name}.id"], :groupable => true), QueryColumn.new(:updated_on, :sortable => "#{Issue.table_name}.updated_on", :default_order => 'desc'), QueryColumn.new(:category, :sortable => "#{IssueCategory.table_name}.name", :groupable => true), + QueryColumn.new(:is_private, :sortable => "#{Issue.table_name}.is_private", :groupable => true), QueryColumn.new(:fixed_version, :sortable => ["#{Version.table_name}.effective_date", "#{Version.table_name}.name"], :default_order => 'desc', :groupable => true), QueryColumn.new(:start_date, :sortable => "#{Issue.table_name}.start_date"), QueryColumn.new(:due_date, :sortable => "#{Issue.table_name}.due_date"), diff -ur redmine-0.9.3/app/models/user.rb redmine/app/models/user.rb --- redmine-0.9.3/app/models/user.rb 2010-02-28 13:28:06.000000000 +0300 +++ redmine/app/models/user.rb 2010-04-17 12:03:42.118809360 +0400 @@ -289,7 +289,7 @@ roles = roles_for_project(project) return false unless roles - roles.detect {|role| (project.is_public? || role.member?) && role.allowed_to?(action)} + roles.any? {|role| (project.is_public? || role.member?) && role.allowed_to?(action)} elsif options[:global] # Admin users are always authorized @@ -297,7 +297,7 @@ # authorize if user has at least one role that has this permission roles = memberships.collect {|m| m.roles}.flatten.uniq - roles.detect {|r| r.allowed_to?(action)} || (self.logged? ? Role.non_member.allowed_to?(action) : Role.anonymous.allowed_to?(action)) + roles.any? {|r| r.allowed_to?(action)} || (self.logged? ? Role.non_member.allowed_to?(action) : Role.anonymous.allowed_to?(action)) else false end diff -ur redmine-0.9.3/app/views/issues/_form.rhtml redmine/app/views/issues/_form.rhtml --- redmine-0.9.3/app/views/issues/_form.rhtml 2010-02-28 13:28:06.000000000 +0300 +++ redmine/app/views/issues/_form.rhtml 2010-04-17 12:03:42.136812699 +0400 @@ -15,6 +15,9 @@
<%= render :partial => 'attributes' %>
+<% if User.current.allowed_to?(:add_issues, @project) && User.current.allowed_to?(:add_private_issues, @project) %> +

<%=f.check_box :is_private %>

+<% end %> <% if @issue.new_record? %>

<%= render :partial => 'attachments/form' %>

diff -ur redmine-0.9.3/app/views/issues/_list.rhtml redmine/app/views/issues/_list.rhtml --- redmine-0.9.3/app/views/issues/_list.rhtml 2010-02-28 13:28:06.000000000 +0300 +++ redmine/app/views/issues/_list.rhtml 2010-04-17 14:17:36.197550875 +0400 @@ -24,11 +24,13 @@ <% previous_group = group %> <% end %> + <% if issue.visible? %> <%= check_box_tag("ids[]", issue.id, false, :id => nil) %> <%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %> <% query.columns.each do |column| %><%= content_tag 'td', column_content(column, issue), :class => column.name %><% end %> + <% end %> <% end -%> diff -ur redmine-0.9.3/app/views/issues/_list_simple.rhtml redmine/app/views/issues/_list_simple.rhtml --- redmine-0.9.3/app/views/issues/_list_simple.rhtml 2010-02-28 13:28:06.000000000 +0300 +++ redmine/app/views/issues/_list_simple.rhtml 2010-04-17 12:03:42.295801741 +0400 @@ -9,6 +9,7 @@ <% for issue in issues %> + <% if issue.visible? %> <%= check_box_tag("ids[]", issue.id, false, :style => 'display:none;') %> @@ -20,6 +21,7 @@ <%= link_to h(truncate(issue.subject, :length => 60)), :controller => 'issues', :action => 'show', :id => issue %> (<%=h issue.status %>) + <% end %> <% end %> diff -ur redmine-0.9.3/app/views/issues/show.rhtml redmine/app/views/issues/show.rhtml --- redmine-0.9.3/app/views/issues/show.rhtml 2010-02-28 13:28:06.000000000 +0300 +++ redmine/app/views/issues/show.rhtml 2010-04-17 14:27:00.098255661 +0400 @@ -1,3 +1,5 @@ +<% if @issue.visible? %> + <%= render :partial => 'action_menu' %>

<%= @issue.tracker.name %> #<%= @issue.id %>

@@ -37,6 +39,9 @@ <% if @issue.estimated_hours %> <%=l(:field_estimated_hours)%>:<%= l_hours(@issue.estimated_hours) %> <% end %> + <% if @issue.is_private %> + <%=l(:field_is_private)%>:<%=l(:general_text_Yes)%> + <% end %> <%= render_custom_fields_rows(@issue) %> <%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %> @@ -113,3 +118,7 @@ <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@issue.project} - #{@issue.tracker} ##{@issue.id}: #{@issue.subject}") %> <%= stylesheet_link_tag 'scm' %> <% end %> + +<% else %> +

<%=l(:label_access_denied)%>

+<% end %> diff -ur redmine-0.9.3/app/views/projects/show.rhtml redmine/app/views/projects/show.rhtml --- redmine-0.9.3/app/views/projects/show.rhtml 2010-02-28 13:28:06.000000000 +0300 +++ redmine/app/views/projects/show.rhtml 2010-04-17 12:03:42.363810665 +0400 @@ -31,6 +31,7 @@ "tracker_id" => tracker.id %>: <%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i, :total => @total_issues_by_tracker[tracker].to_i) %> + (<%= @private_issues_by_tracker[tracker] || 0 %> <%= l(:label_private_issues, @private_issues_by_tracker[tracker] || 0) %>) <% end %> diff -ur redmine-0.9.3/config/locales/bg.yml redmine/config/locales/bg.yml --- redmine-0.9.3/config/locales/bg.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/bg.yml 2010-04-17 12:03:42.409820452 +0400 @@ -257,6 +257,7 @@ setting_date_format: Формат на датата setting_cross_project_issue_relations: Релации на задачи между проекти + label_access_denied: Access denied label_user: Потребител label_user_plural: Потребители label_user_new: Нов потребител @@ -360,6 +361,8 @@ label_public_projects: Публични проекти label_open_issues: отворена label_open_issues_plural: отворени + label_private_issues: private + label_private_issues_plural: private label_closed_issues: затворена label_closed_issues_plural: затворени label_x_open_issues_abbr_on_total: @@ -716,6 +719,7 @@ setting_mail_handler_api_key: API key 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." field_parent_title: Parent page + field_is_private: Private issue label_issue_watchers: Watchers setting_commit_logs_encoding: Commit messages encoding button_quote: Quote @@ -729,6 +733,8 @@ permission_edit_own_time_entries: Edit own time logs permission_manage_public_queries: Manage public queries permission_add_issues: Add issues + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_log_time: Log spent time permission_view_changesets: View changesets permission_view_time_entries: View spent time diff -ur redmine-0.9.3/config/locales/bs.yml redmine/config/locales/bs.yml --- redmine-0.9.3/config/locales/bs.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/bs.yml 2010-04-17 12:03:42.454830417 +0400 @@ -274,6 +274,7 @@ field_default_value: Podrazumjevana vrijednost field_comments_sorting: Prikaži komentare field_parent_title: 'Stranica "roditelj"' + field_is_private: Private issue field_editable: Može se mijenjati field_watcher: Posmatrač field_identity_url: OpenID URL @@ -329,6 +330,8 @@ permission_manage_versions: Upravljanje verzijama permission_manage_categories: Upravljanje kategorijama aktivnosti permission_add_issues: Dodaj aktivnosti + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_edit_issues: Ispravka aktivnosti permission_manage_issue_relations: Upravljaj relacijama među aktivnostima permission_add_issue_notes: Dodaj bilješke @@ -381,6 +384,7 @@ project_module_repository: Repozitorij project_module_boards: Forumi + label_access_denied: Access denied label_user: Korisnik label_user_plural: Korisnici label_user_new: Novi korisnik @@ -496,6 +500,8 @@ label_public_projects: Javni projekti label_open_issues: otvoren label_open_issues_plural: otvoreni + label_private_issues: private + label_private_issues_plural: private label_closed_issues: zatvoren label_closed_issues_plural: zatvoreni label_x_open_issues_abbr_on_total: diff -ur redmine-0.9.3/config/locales/ca.yml redmine/config/locales/ca.yml --- redmine-0.9.3/config/locales/ca.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/ca.yml 2010-04-17 12:03:42.698800855 +0400 @@ -256,6 +256,7 @@ field_default_value: Valor predeterminat field_comments_sorting: Mostra els comentaris field_parent_title: Pàgina pare + field_is_private: Private issue field_editable: Es pot editar field_watcher: Vigilància field_identity_url: URL OpenID @@ -310,6 +311,8 @@ permission_manage_versions: Gestiona les versions permission_manage_categories: Gestiona les categories dels assumptes permission_add_issues: Afegeix assumptes + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_edit_issues: Edita els assumptes permission_manage_issue_relations: Gestiona les relacions dels assumptes permission_add_issue_notes: Afegeix notes @@ -362,6 +365,7 @@ project_module_repository: Dipòsit project_module_boards: Taulers + label_access_denied: Access denied label_user: Usuari label_user_plural: Usuaris label_user_new: Usuari nou @@ -476,6 +480,8 @@ label_public_projects: Projectes públics label_open_issues: obert label_open_issues_plural: oberts + label_private_issues: private + label_private_issues_plural: private label_closed_issues: tancat label_closed_issues_plural: tancats label_x_open_issues_abbr_on_total: diff -ur redmine-0.9.3/config/locales/cs.yml redmine/config/locales/cs.yml --- redmine-0.9.3/config/locales/cs.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/cs.yml 2010-04-17 12:03:42.717804639 +0400 @@ -296,6 +296,7 @@ project_module_repository: Repository project_module_boards: Diskuse + label_access_denied: Access denied label_user: Uživatel label_user_plural: Uživatelé label_user_new: Nový uživatel @@ -407,6 +408,8 @@ label_public_projects: Veřejné projekty label_open_issues: otevřený label_open_issues_plural: otevřené + label_private_issues: private + label_private_issues_plural: private label_closed_issues: uzavřený label_closed_issues_plural: uzavřené label_x_open_issues_abbr_on_total: @@ -722,6 +725,7 @@ setting_mail_handler_api_key: API klíč 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." field_parent_title: Rodičovská stránka + field_is_private: Private issue label_issue_watchers: Sledování setting_commit_logs_encoding: Kódování zpráv při commitu button_quote: Citovat @@ -735,6 +739,8 @@ permission_edit_own_time_entries: Upravování vlastních zázamů o stráveném čase permission_manage_public_queries: Správa veřejných dotazů permission_add_issues: Přidávání úkolů + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_log_time: Zaznamenávání stráveného času permission_view_changesets: Zobrazování sady změn permission_view_time_entries: Zobrazení stráveného času diff -ur redmine-0.9.3/config/locales/da.yml redmine/config/locales/da.yml --- redmine-0.9.3/config/locales/da.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/da.yml 2010-04-17 12:03:42.776799731 +0400 @@ -308,6 +308,7 @@ project_module_repository: Repository project_module_boards: Fora + label_access_denied: Access denied label_user: Bruger label_user_plural: Brugere label_user_new: Ny bruger @@ -418,6 +419,8 @@ label_public_projects: Offentlige projekter label_open_issues: åben label_open_issues_plural: åbne + label_private_issues: private + label_private_issues_plural: private label_closed_issues: lukket label_closed_issues_plural: lukkede label_x_open_issues_abbr_on_total: @@ -733,6 +736,8 @@ button_quote: Citér permission_view_files: Se filer permission_add_issues: Tilføj sager + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_edit_own_messages: Redigér egne beskeder permission_delete_own_messages: Slet egne beskeder permission_manage_public_queries: Administrér offentlig forespørgsler @@ -748,6 +753,7 @@ setting_sequential_project_identifiers: Generér sekventielle projekt-identifikatorer setting_plain_text_mail: Emails som almindelig tekst (ingen HTML) field_parent_title: Siden over + field_is_private: Private issue 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." permission_protect_wiki_pages: Beskyt wiki sider permission_manage_documents: Administrér dokumenter diff -ur redmine-0.9.3/config/locales/de.yml redmine/config/locales/de.yml --- redmine-0.9.3/config/locales/de.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/de.yml 2010-04-17 14:32:40.812705004 +0400 @@ -279,6 +279,7 @@ field_default_value: Standardwert field_comments_sorting: Kommentare anzeigen field_parent_title: Übergeordnete Seite + field_is_private: Private issue setting_app_title: Applikations-Titel setting_app_subtitle: Applikations-Untertitel @@ -326,6 +327,8 @@ permission_manage_versions: Versionen verwalten permission_manage_categories: Ticket-Kategorien verwalten permission_add_issues: Tickets hinzufügen + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_edit_issues: Tickets bearbeiten permission_manage_issue_relations: Ticket-Beziehungen verwalten permission_add_issue_notes: Kommentare hinzufügen @@ -491,6 +494,8 @@ label_public_projects: Öffentliche Projekte label_open_issues: offen label_open_issues_plural: offen + label_private_issues: private + label_private_issues_plural: private label_closed_issues: geschlossen label_closed_issues_plural: geschlossen label_x_open_issues_abbr_on_total: @@ -693,6 +698,7 @@ label_generate_key: Generieren label_issue_watchers: Beobachter label_example: Beispiel + label_access_denied: Access denied button_login: Anmelden button_submit: OK diff -ur redmine-0.9.3/config/locales/el.yml redmine/config/locales/el.yml --- redmine-0.9.3/config/locales/el.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/el.yml 2010-04-17 12:03:43.077794007 +0400 @@ -265,6 +265,7 @@ field_default_value: Προκαθορισμένη τιμή field_comments_sorting: Προβολή σχολίων field_parent_title: Γονική σελίδα + field_is_private: Private issue field_editable: Επεξεργάσιμο field_watcher: Παρατηρητής field_identity_url: OpenID URL @@ -323,6 +324,8 @@ permission_manage_versions: Διαχείριση εκδόσεων permission_manage_categories: Διαχείριση κατηγοριών θεμάτων permission_add_issues: Προσθήκη θεμάτων + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_edit_issues: Επεξεργασία θεμάτων permission_manage_issue_relations: Διαχείριση συσχετισμών θεμάτων permission_add_issue_notes: Προσθήκη σημειώσεων @@ -375,6 +378,7 @@ project_module_repository: Αποθετήριο project_module_boards: Πίνακες συζητήσεων + label_access_denied: Access denied label_user: Χρήστης label_user_plural: Χρήστες label_user_new: Νέος Χρήστης @@ -489,6 +493,8 @@ label_public_projects: Δημόσια έργα label_open_issues: Ανοικτό label_open_issues_plural: Ανοικτά + label_private_issues: private + label_private_issues_plural: private label_closed_issues: Κλειστό label_closed_issues_plural: Κλειστά label_x_open_issues_abbr_on_total: diff -ur redmine-0.9.3/config/locales/en.yml redmine/config/locales/en.yml --- redmine-0.9.3/config/locales/en.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/en.yml 2010-04-17 12:03:43.347755096 +0400 @@ -270,6 +270,7 @@ field_default_value: Default value field_comments_sorting: Display comments field_parent_title: Parent page + field_is_private: Private issue field_editable: Editable field_watcher: Watcher field_identity_url: OpenID URL @@ -341,6 +342,8 @@ permission_manage_categories: Manage issue categories permission_view_issues: View Issues permission_add_issues: Add issues + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_edit_issues: Edit issues permission_manage_issue_relations: Manage issue relations permission_add_issue_notes: Add notes @@ -395,6 +398,7 @@ project_module_repository: Repository project_module_boards: Boards + label_access_denied: Access denied label_user: User label_user_plural: Users label_user_new: New user @@ -512,6 +516,8 @@ label_public_projects: Public projects label_open_issues: open label_open_issues_plural: open + label_private_issues: private + label_private_issues_plural: private label_closed_issues: closed label_closed_issues_plural: closed label_x_open_issues_abbr_on_total: diff -ur redmine-0.9.3/config/locales/es.yml redmine/config/locales/es.yml --- redmine-0.9.3/config/locales/es.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/es.yml 2010-04-17 12:03:43.348757835 +0400 @@ -300,6 +300,7 @@ field_onthefly: Creación del usuario "al vuelo" field_parent: Proyecto padre field_parent_title: Página padre + field_is_private: Private issue field_password: Contraseña field_password_confirmation: Confirmación field_port: Puerto @@ -538,6 +539,8 @@ label_not_equals: no igual label_open_issues: abierta label_open_issues_plural: abiertas + label_private_issues: private + label_private_issues_plural: private label_optional_description: Descripción opcional label_options: Opciones label_overall_activity: Actividad global @@ -630,6 +633,7 @@ label_updated_time: "Actualizado hace {{value}}" label_updated_time_by: "Actualizado por {{author}} hace {{age}}" label_used_by: Utilizado por + label_access_denied: Access denied label_user: Usuario label_user_activity: "Actividad de {{value}}" label_user_mail_no_self_notified: "No quiero ser avisado de cambios hechos por mí" @@ -690,6 +694,8 @@ permission_add_issue_notes: Añadir notas permission_add_issue_watchers: Añadir seguidores permission_add_issues: Añadir peticiones + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_add_messages: Enviar mensajes permission_browse_repository: Hojear repositiorio permission_comment_news: Comentar noticias diff -ur redmine-0.9.3/config/locales/fi.yml redmine/config/locales/fi.yml --- redmine-0.9.3/config/locales/fi.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/fi.yml 2010-04-17 12:04:16.910799990 +0400 @@ -312,6 +312,7 @@ setting_protocol: Protokolla setting_per_page_options: Sivun objektien määrän asetukset + label_access_denied: Access denied label_user: Käyttäjä label_user_plural: Käyttäjät label_user_new: Uusi käyttäjä @@ -417,6 +418,8 @@ label_public_projects: Julkiset projektit label_open_issues: avoin, yhteensä label_open_issues_plural: avointa, yhteensä + label_private_issues: private + label_private_issues_plural: private label_closed_issues: suljettu label_closed_issues_plural: suljettua label_x_open_issues_abbr_on_total: @@ -752,6 +755,7 @@ setting_mail_handler_api_key: API avain 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." field_parent_title: Aloitussivu + field_is_private: Private issue label_issue_watchers: Tapahtuman seuraajat button_quote: Vastaa setting_sequential_project_identifiers: Luo peräkkäiset projektien tunnisteet @@ -765,6 +769,8 @@ permission_edit_own_time_entries: Muokka omia aikamerkintöjä permission_manage_public_queries: Hallinnoi julkisia hakuja permission_add_issues: Lisää tapahtumia + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_log_time: Lokita käytettyä aikaa permission_view_changesets: Näytä muutosryhmät permission_view_time_entries: Näytä käytetty aika diff -ur redmine-0.9.3/config/locales/fr.yml redmine/config/locales/fr.yml --- redmine-0.9.3/config/locales/fr.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/fr.yml 2010-04-17 12:04:16.911799754 +0400 @@ -292,6 +292,7 @@ field_default_value: Valeur par défaut field_comments_sorting: Afficher les commentaires field_parent_title: Page parent + field_is_private: Private issue field_editable: Modifiable field_watcher: Observateur field_identity_url: URL OpenID @@ -363,6 +364,8 @@ permission_manage_categories: Gérer les catégories de demandes permission_view_issues: Voir les demandes permission_add_issues: Créer des demandes + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_edit_issues: Modifier les demandes permission_manage_issue_relations: Gérer les relations permission_add_issue_notes: Ajouter des notes @@ -418,6 +421,7 @@ project_module_repository: Dépôt de sources project_module_boards: Forums de discussion + label_access_denied: Access denied label_user: Utilisateur label_user_plural: Utilisateurs label_user_new: Nouvel utilisateur @@ -534,6 +538,8 @@ label_public_projects: Projets publics label_open_issues: ouvert label_open_issues_plural: ouverts + label_private_issues: private + label_private_issues_plural: private label_closed_issues: fermé label_closed_issues_plural: fermés label_x_open_issues_abbr_on_total: diff -ur redmine-0.9.3/config/locales/gl.yml redmine/config/locales/gl.yml --- redmine-0.9.3/config/locales/gl.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/gl.yml 2010-04-17 12:04:16.912799555 +0400 @@ -277,6 +277,7 @@ field_onthefly: Creación do usuario "ao voo" field_parent: Proxecto pai field_parent_title: Páxina pai + field_is_private: Private issue field_password: Contrasinal field_password_confirmation: Confirmación field_port: Porto @@ -515,6 +516,8 @@ label_not_equals: non igual label_open_issues: aberta label_open_issues_plural: abertas + label_private_issues: private + label_private_issues_plural: private label_optional_description: Descrición opcional label_options: Opcións label_overall_activity: Actividade global @@ -607,6 +610,7 @@ label_updated_time: "Actualizado fai {{value}}" label_updated_time_by: "Actualizado por {{author}} fai {{age}}" label_used_by: Utilizado por + label_access_denied: Access denied label_user: Usuario label_user_activity: "Actividade de {{value}}" label_user_mail_no_self_notified: "Non quero ser avisado de cambios feitos por min" @@ -667,6 +671,8 @@ permission_add_issue_notes: Engadir notas permission_add_issue_watchers: Engadir seguidores permission_add_issues: Engadir peticións + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_add_messages: Enviar mensaxes permission_browse_repository: Ollar repositorio permission_comment_news: Comentar noticias diff -ur redmine-0.9.3/config/locales/he.yml redmine/config/locales/he.yml --- redmine-0.9.3/config/locales/he.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/he.yml 2010-04-17 12:04:16.913799341 +0400 @@ -272,6 +272,7 @@ setting_issue_list_default_columns: עמודות ברירת מחדל המוצגות ברשימת הנושאים setting_repositories_encodings: קידוד המאגרים + label_access_denied: Access denied label_user: משתמש label_user_plural: משתמשים label_user_new: משתמש חדש @@ -375,6 +376,8 @@ label_public_projects: פרויקטים פומביים label_open_issues: פתוח label_open_issues_plural: פתוחים + label_private_issues: private + label_private_issues_plural: private label_closed_issues: סגור label_closed_issues_plural: סגורים label_x_open_issues_abbr_on_total: @@ -726,6 +729,7 @@ setting_mail_handler_api_key: מפתח API 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." field_parent_title: דף אב + field_is_private: Private issue label_issue_watchers: צופים setting_commit_logs_encoding: Commit messages encoding button_quote: צטט @@ -739,6 +743,8 @@ permission_edit_own_time_entries: ערוך את לוג הזמן של עצמך permission_manage_public_queries: נהל שאילתות פומביות permission_add_issues: הוסף נושא + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_log_time: תעד זמן שבוזבז permission_view_changesets: צפה בקבוצות שינויים permission_view_time_entries: צפה בזמן שבוזבז diff -ur redmine-0.9.3/config/locales/hr.yml redmine/config/locales/hr.yml --- redmine-0.9.3/config/locales/hr.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/hr.yml 2010-04-17 12:04:16.914799195 +0400 @@ -271,6 +271,7 @@ field_default_value: Zadana vrijednost field_comments_sorting: Prikaz komentara field_parent_title: Parent page + field_is_private: Private issue field_editable: Editable field_watcher: Watcher field_identity_url: OpenID URL @@ -339,6 +340,8 @@ permission_manage_categories: Upravljaj kategorijama predmeta permission_view_issues: Pregledaj zahtjeve permission_add_issues: Dodaj predmete + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_edit_issues: Uredi predmete permission_manage_issue_relations: Upravljaj relacijama predmeta permission_add_issue_notes: Dodaj bilješke @@ -392,6 +395,7 @@ project_module_repository: Skladište project_module_boards: Boards + label_access_denied: Access denied label_user: Korisnik label_user_plural: Korisnici label_user_new: Novi korisnik @@ -509,6 +513,8 @@ label_public_projects: Javni projekti label_open_issues: Otvoren label_open_issues_plural: Otvoreno + label_private_issues: private + label_private_issues_plural: private label_closed_issues: Zatvoren label_closed_issues_plural: Zatvoreno label_x_open_issues_abbr_on_total: diff -ur redmine-0.9.3/config/locales/hu.yml redmine/config/locales/hu.yml --- redmine-0.9.3/config/locales/hu.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/hu.yml 2010-04-17 12:04:16.915798864 +0400 @@ -322,6 +322,7 @@ project_module_repository: Tároló project_module_boards: Fórumok + label_access_denied: Access denied label_user: Felhasználó label_user_plural: Felhasználók label_user_new: Új felhasználó @@ -434,6 +435,8 @@ label_public_projects: Nyilvános projektek label_open_issues: nyitott label_open_issues_plural: nyitott + label_private_issues: private + label_private_issues_plural: private label_closed_issues: lezárt label_closed_issues_plural: lezárt label_x_open_issues_abbr_on_total: @@ -747,6 +750,7 @@ setting_mail_handler_api_key: API kulcs 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." field_parent_title: Szülő oldal + field_is_private: Private issue label_issue_watchers: Megfigyelők setting_commit_logs_encoding: Commit üzenetek kódlapja button_quote: Hozzászólás / Idézet / Kérdés @@ -760,6 +764,8 @@ permission_edit_own_time_entries: Saját időnapló szerkesztése permission_manage_public_queries: Nyilvános kérések kezelése permission_add_issues: Feladat felvétele + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_log_time: Idő rögzítése permission_view_changesets: Változáskötegek megtekintése permission_view_time_entries: Időrögzítések megtekintése diff -ur redmine-0.9.3/config/locales/id.yml redmine/config/locales/id.yml --- redmine-0.9.3/config/locales/id.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/id.yml 2010-04-17 12:04:16.916798675 +0400 @@ -273,6 +273,7 @@ field_default_value: Nilai default field_comments_sorting: Tampilkan komentar field_parent_title: Halaman induk + field_is_private: Private issue field_editable: Dapat disunting field_watcher: Pemantau field_identity_url: OpenID URL @@ -334,6 +335,8 @@ permission_manage_versions: Atur versi permission_manage_categories: Atur kategori masalah permission_add_issues: Tambahkan masalah + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_edit_issues: Sunting masalah permission_manage_issue_relations: Atur kaitan masalah permission_add_issue_notes: Tambahkan catatan @@ -387,6 +390,7 @@ project_module_repository: Repositori project_module_boards: Forum + label_access_denied: Access denied label_user: Pengguna label_user_plural: Pengguna label_user_new: Pengguna baru @@ -503,6 +507,8 @@ label_public_projects: Proyek publik label_open_issues: belum selesai label_open_issues_plural: belum selesai + label_private_issues: private + label_private_issues_plural: private label_closed_issues: selesai label_closed_issues_plural: selesai label_x_open_issues_abbr_on_total: diff -ur redmine-0.9.3/config/locales/it.yml redmine/config/locales/it.yml --- redmine-0.9.3/config/locales/it.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/it.yml 2010-04-17 12:04:16.916798675 +0400 @@ -270,6 +270,7 @@ setting_date_format: Formato data setting_cross_project_issue_relations: Consenti la creazione di relazioni tra segnalazioni in progetti differenti + label_access_denied: Access denied label_user: Utente label_user_plural: Utenti label_user_new: Nuovo utente @@ -373,6 +374,8 @@ label_public_projects: Progetti pubblici label_open_issues: aperta label_open_issues_plural: aperte + label_private_issues: private + label_private_issues_plural: private label_closed_issues: chiusa label_closed_issues_plural: chiuse label_x_open_issues_abbr_on_total: @@ -729,6 +732,7 @@ setting_mail_handler_api_key: Chiave API 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." field_parent_title: Parent page + field_is_private: Private issue label_issue_watchers: Osservatori setting_commit_logs_encoding: Codifica dei messaggi di commit button_quote: Quota @@ -742,6 +746,8 @@ permission_edit_own_time_entries: Modifica propri time logs permission_manage_public_queries: Gestisci query pubbliche permission_add_issues: Aggiungi segnalazioni + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_log_time: Segna tempo impiegato permission_view_changesets: Vedi changesets permission_view_time_entries: Vedi tempi impiegati diff -ur redmine-0.9.3/config/locales/ja.yml redmine/config/locales/ja.yml --- redmine-0.9.3/config/locales/ja.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/ja.yml 2010-04-17 12:04:16.918798168 +0400 @@ -301,6 +301,7 @@ field_default_value: デフォルト値 field_comments_sorting: コメントを表示 field_parent_title: 親ページ + field_is_private: Private issue field_editable: 編集可能 field_watcher: ウォッチャー field_identity_url: OpenID URL @@ -371,6 +372,8 @@ permission_manage_categories: チケットのカテゴリの管理 permission_view_issues: チケットの閲覧 permission_add_issues: チケットの追加 + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_edit_issues: チケットの編集 permission_manage_issue_relations: チケットの管理 permission_add_issue_notes: 注記の追加 @@ -425,6 +428,7 @@ project_module_repository: リポジトリ project_module_boards: フォーラム + label_access_denied: Access denied label_user: ユーザ label_user_plural: ユーザ label_user_new: 新しいユーザ @@ -542,6 +546,8 @@ label_public_projects: 公開プロジェクト label_open_issues: 未完了 label_open_issues_plural: 未完了 + label_private_issues: private + label_private_issues_plural: private label_closed_issues: 完了 label_closed_issues_plural: 完了 label_x_open_issues_abbr_on_total: diff -ur redmine-0.9.3/config/locales/ko.yml redmine/config/locales/ko.yml --- redmine-0.9.3/config/locales/ko.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/ko.yml 2010-04-17 12:04:16.919797999 +0400 @@ -321,6 +321,7 @@ field_searchable: 검색가능 field_comments_sorting: 댓글 정렬 field_parent_title: 상위 제목 + field_is_private: Private issue field_editable: 편집가능 field_watcher: 일감지킴이 field_identity_url: OpenID URL @@ -379,6 +380,8 @@ permission_manage_versions: 버전 관리 permission_manage_categories: 일감 범주 관리 permission_add_issues: 일감 추가 + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_edit_issues: 일감 편집 permission_manage_issue_relations: 일감 관계 관리 permission_add_issue_notes: 덧글 추가 @@ -431,6 +434,7 @@ project_module_repository: 저장소 project_module_boards: 게시판 + label_access_denied: Access denied label_user: 사용자 label_user_plural: 사용자 label_user_new: 새 사용자 @@ -545,6 +549,8 @@ label_public_projects: 공개 프로젝트 label_open_issues: 진행중 label_open_issues_plural: 진행중 + label_private_issues: private + label_private_issues_plural: private label_closed_issues: 완료됨 label_closed_issues_plural: 완료됨 label_x_open_issues_abbr_on_total: diff -ur redmine-0.9.3/config/locales/lt.yml redmine/config/locales/lt.yml --- redmine-0.9.3/config/locales/lt.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/lt.yml 2010-04-17 12:04:16.919797999 +0400 @@ -332,6 +332,7 @@ field_default_value: Numatytoji vertė field_comments_sorting: rodyti komentarus field_parent_title: Aukštesnio lygio puslapis + field_is_private: Private issue field_editable: Redaguojamas field_watcher: Stebėtojas field_identity_url: OpenID URL @@ -394,6 +395,8 @@ permission_manage_versions: Valdyti versijas permission_manage_categories: Valdyti darbų kategorijas permission_add_issues: Sukurti darbus + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_edit_issues: Redaguoti darbus permission_manage_issue_relations: Valdyti darbų ryšius permission_add_issue_notes: Sukurti pastabas @@ -448,6 +451,7 @@ project_module_repository: Saugykla project_module_boards: Forumai + label_access_denied: Access denied label_user: Vartotojas label_user_plural: Vartotojai label_user_new: Naujas vartotojas @@ -562,6 +566,8 @@ label_public_projects: Vieši projektai label_open_issues: atidaryta label_open_issues_plural: atidaryti + label_private_issues: private + label_private_issues_plural: private label_closed_issues: uždaryta label_closed_issues_plural: uždaryti label_x_open_issues_abbr_on_total: diff -ur redmine-0.9.3/config/locales/nl.yml redmine/config/locales/nl.yml --- redmine-0.9.3/config/locales/nl.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/nl.yml 2010-04-17 12:04:23.279588115 +0400 @@ -239,6 +239,7 @@ field_onthefly: On-the-fly aanmaken van een gebruiker field_parent: Subproject van field_parent_title: Bovenliggende pagina + field_is_private: Private issue field_password: Wachtwoord field_password_confirmation: Bevestigen field_port: Port @@ -477,6 +478,8 @@ label_not_equals: is niet gelijk label_open_issues: open label_open_issues_plural: open + label_private_issues: private + label_private_issues_plural: private label_optional_description: Optionele beschrijving label_options: Opties label_overall_activity: Activiteit @@ -569,6 +572,7 @@ label_updated_time: "{{value}} geleden bijgewerkt" label_updated_time_by: "{{age}} geleden bijgewerkt door {{author}}" label_used_by: Gebruikt door + label_access_denied: Access denied label_user: Gebruiker label_user_activity: "{{value}}'s activiteit" label_user_mail_no_self_notified: "Ik wil niet verwittigd worden van wijzigingen die ik zelf maak." @@ -629,6 +633,8 @@ permission_add_issue_notes: Voeg notities toe permission_add_issue_watchers: Voeg monitors toe permission_add_issues: Voeg issues toe + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_add_messages: Voeg berichten toe permission_browse_repository: Repository doorbladeren permission_comment_news: Nieuws commentaar geven diff -ur redmine-0.9.3/config/locales/no.yml redmine/config/locales/no.yml --- redmine-0.9.3/config/locales/no.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/no.yml 2010-04-17 12:04:23.280587864 +0400 @@ -295,6 +295,7 @@ project_module_repository: Depot project_module_boards: Forumer + label_access_denied: Access denied label_user: Bruker label_user_plural: Brukere label_user_new: Ny bruker @@ -407,6 +408,8 @@ label_public_projects: Offentlige prosjekt label_open_issues: åpen label_open_issues_plural: åpne + label_private_issues: private + label_private_issues_plural: private label_closed_issues: lukket label_closed_issues_plural: lukkede label_x_open_issues_abbr_on_total: @@ -717,6 +720,7 @@ setting_mail_handler_api_key: API key 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." field_parent_title: Parent page + field_is_private: Private issue label_issue_watchers: Watchers setting_commit_logs_encoding: Commit messages encoding button_quote: Quote @@ -730,6 +734,8 @@ permission_edit_own_time_entries: Edit own time logs permission_manage_public_queries: Manage public queries permission_add_issues: Add issues + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_log_time: Log spent time permission_view_changesets: View changesets permission_view_time_entries: View spent time diff -ur redmine-0.9.3/config/locales/pl.yml redmine/config/locales/pl.yml --- redmine-0.9.3/config/locales/pl.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/pl.yml 2010-04-17 12:04:23.281587648 +0400 @@ -264,6 +264,7 @@ field_onthefly: Tworzenie użytkownika w locie field_parent: Nadprojekt field_parent_title: Strona rodzica + field_is_private: Private issue field_password: Hasło field_password_confirmation: Potwierdzenie field_port: Port @@ -514,6 +515,8 @@ label_not_equals: różni się label_open_issues: otwarte label_open_issues_plural234: otwarte + label_private_issues: private + label_private_issues_plural: private label_open_issues_plural5: otwarte label_open_issues_plural: otwarte label_optional_description: Opcjonalny opis @@ -609,6 +612,7 @@ label_tracker_plural: Typy zagadnień label_updated_time: "Zaktualizowane {{value}} temu" label_used_by: Używane przez + label_access_denied: Access denied label_user: Użytkownik label_user_mail_no_self_notified: "Nie chcę powiadomień o zmianach, które sam wprowadzam." label_user_mail_option_all: "Dla każdego zdarzenia w każdym moim projekcie" @@ -668,6 +672,8 @@ permission_add_issue_notes: Dodawanie notatek permission_add_issue_watchers: Dodawanie obserwatorów permission_add_issues: Dodawanie zagadnień + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_add_messages: Dodawanie wiadomości permission_browse_repository: Przeglądanie repozytorium permission_comment_news: Komentowanie komunikatów diff -ur redmine-0.9.3/config/locales/pt-BR.yml redmine/config/locales/pt-BR.yml --- redmine-0.9.3/config/locales/pt-BR.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/pt-BR.yml 2010-04-17 12:04:23.282587404 +0400 @@ -286,6 +286,7 @@ field_default_value: Padrão field_comments_sorting: Visualizar comentários field_parent_title: Página pai + field_is_private: Private issue setting_app_title: Título da aplicação setting_app_subtitle: Sub-título da aplicação @@ -333,6 +334,7 @@ project_module_repository: Repositório project_module_boards: Fóruns + label_access_denied: Access denied label_user: Usuário label_user_plural: Usuários label_user_new: Novo usuário @@ -445,6 +447,8 @@ label_public_projects: Projetos públicos label_open_issues: Aberta label_open_issues_plural: Abertas + label_private_issues: private + label_private_issues_plural: private label_closed_issues: Fechada label_closed_issues_plural: Fechadas label_x_open_issues_abbr_on_total: @@ -763,6 +767,8 @@ permission_edit_own_time_entries: Editar o próprio tempo de trabalho permission_manage_public_queries: Gerenciar consultas publicas permission_add_issues: Adicionar tarefas + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_log_time: Adicionar tempo gasto permission_view_changesets: Ver changesets permission_view_time_entries: Ver tempo gasto diff -ur redmine-0.9.3/config/locales/pt.yml redmine/config/locales/pt.yml --- redmine-0.9.3/config/locales/pt.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/pt.yml 2010-04-17 12:04:23.283587153 +0400 @@ -271,6 +271,7 @@ field_default_value: Valor por omissão field_comments_sorting: Mostrar comentários field_parent_title: Página pai + field_is_private: Private issue setting_app_title: Título da aplicação setting_app_subtitle: Sub-título da aplicação @@ -318,6 +319,7 @@ project_module_repository: Repositório project_module_boards: Forum + label_access_denied: Access denied label_user: Utilizador label_user_plural: Utilizadores label_user_new: Novo utilizador @@ -430,6 +432,8 @@ label_public_projects: Projectos públicos label_open_issues: aberto label_open_issues_plural: abertos + label_private_issues: private + label_private_issues_plural: private label_closed_issues: fechado label_closed_issues_plural: fechados label_x_open_issues_abbr_on_total: @@ -747,6 +751,8 @@ permission_edit_own_time_entries: Editar horas pessoais permission_manage_public_queries: Gerir queries públicas permission_add_issues: Adicionar tarefas + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_log_time: Registar tempo gasto permission_view_changesets: Ver changesets permission_view_time_entries: Ver tempo gasto diff -ur redmine-0.9.3/config/locales/ro.yml redmine/config/locales/ro.yml --- redmine-0.9.3/config/locales/ro.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/ro.yml 2010-04-17 12:04:23.284586925 +0400 @@ -254,6 +254,7 @@ field_default_value: Valoare implicita field_comments_sorting: Afișează comentarii field_parent_title: Pagina superioara + field_is_private: Private issue field_editable: Modificabil field_watcher: Urmărește field_identity_url: URL OpenID @@ -308,6 +309,8 @@ permission_manage_versions: Editează versiuni permission_manage_categories: Editează categorii permission_add_issues: Adaugă tichete + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_edit_issues: Editează tichete permission_manage_issue_relations: Editează relații tichete permission_add_issue_notes: Adaugă note @@ -360,6 +363,7 @@ project_module_repository: Depozit project_module_boards: Forum + label_access_denied: Access denied label_user: Utilizator label_user_plural: Utilizatori label_user_new: Utilizator nou @@ -474,6 +478,8 @@ label_public_projects: Proiecte publice label_open_issues: deschis label_open_issues_plural: deschise + label_private_issues: private + label_private_issues_plural: private label_closed_issues: închis label_closed_issues_plural: închise label_x_open_issues_abbr_on_total: diff -ur redmine-0.9.3/config/locales/ru.yml redmine/config/locales/ru.yml --- redmine-0.9.3/config/locales/ru.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/ru.yml 2010-04-17 12:04:23.285586724 +0400 @@ -346,6 +346,7 @@ field_port: Порт field_possible_values: Возможные значения field_priority: Приоритет + field_is_private: Частная задача field_project: Проект field_redirect_existing_links: Перенаправить существующие ссылки field_regexp: Регулярное выражение @@ -386,6 +387,7 @@ gui_validation_error_plural5: "{{count}} ошибок" label_activity: Активность + label_access_denied: Доступ запрещен label_add_another_file: Добавить ещё один файл label_added_time_by: "Добавил(а) {{author}} {{age}} назад" label_added: добавлено @@ -585,6 +587,10 @@ label_not_contains: не содержит label_not_equals: не соответствует label_open_issues: открыт + label_private_issues_plural2: частных + label_private_issues_plural5: частных + label_private_issues_plural: частных + label_private_issues: частная label_open_issues_plural: открыто label_open_issues_plural2: открыто label_open_issues_plural5: открыто @@ -762,6 +768,8 @@ permission_add_issues: Добавление задач permission_add_issue_notes: Добавление примечаний + permission_add_private_issues: Добавление конфиденциальных задач + permission_view_private_issues: Просмотр конфиденциальных задач permission_add_issue_watchers: Добавление наблюдателей permission_add_messages: Отправка сообщений permission_browse_repository: Просмотр хранилища Only in redmine-0.9.3/config/locales/: ru.yml.orig diff -ur redmine-0.9.3/config/locales/sk.yml redmine/config/locales/sk.yml --- redmine-0.9.3/config/locales/sk.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/sk.yml 2010-04-17 12:04:23.286586515 +0400 @@ -294,6 +294,7 @@ project_module_repository: Repozitár project_module_boards: Diskusie + label_access_denied: Access denied label_user: Užívateľ label_user_plural: Užívatelia label_user_new: Nový užívateľ @@ -405,6 +406,8 @@ label_public_projects: Verejné projekty label_open_issues: Otvorený label_open_issues_plural: Otvorené + label_private_issues: private + label_private_issues_plural: private label_closed_issues: Uzavrený label_closed_issues_plural: Uzavrené label_x_open_issues_abbr_on_total: @@ -720,6 +723,7 @@ setting_mail_handler_api_key: API kľúč 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." field_parent_title: Nadradená stránka + field_is_private: Private issue label_issue_watchers: Pozorovatelia setting_commit_logs_encoding: Kódovanie prenášaných správ button_quote: Citácia @@ -733,6 +737,8 @@ permission_edit_own_time_entries: Úprava vlastných zaznamov o strávenom čase permission_manage_public_queries: Správa verejných otáziek permission_add_issues: Pridanie úlohy + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_log_time: Zaznamenávanie stráveného času permission_view_changesets: Zobrazenie sád zmien permission_view_time_entries: Zobrazenie stráveného času diff -ur redmine-0.9.3/config/locales/sl.yml redmine/config/locales/sl.yml --- redmine-0.9.3/config/locales/sl.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/sl.yml 2010-04-17 12:04:23.287586637 +0400 @@ -254,6 +254,7 @@ field_default_value: Privzeta vrednost field_comments_sorting: Prikaži komentarje field_parent_title: Matična stran + field_is_private: Private issue setting_app_title: Naslov aplikacije setting_app_subtitle: Podnaslov aplikacije @@ -301,6 +302,8 @@ permission_manage_versions: Uredi verzije permission_manage_categories: Urejanje kategorij zahtevkov permission_add_issues: Dodaj zahtevke + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_edit_issues: Uredi zahtevke permission_manage_issue_relations: Uredi odnose med zahtevki permission_add_issue_notes: Dodaj zabeležke @@ -353,6 +356,7 @@ project_module_repository: Shramba project_module_boards: Table + label_access_denied: Access denied label_user: Uporabnik label_user_plural: Uporabniki label_user_new: Nov uporabnik @@ -466,6 +470,8 @@ label_public_projects: Javni projekti label_open_issues: odpri zahtevek label_open_issues_plural: odpri zahtevke + label_private_issues: private + label_private_issues_plural: private label_closed_issues: zapri zahtevek label_closed_issues_plural: zapri zahtevke label_x_open_issues_abbr_on_total: diff -ur redmine-0.9.3/config/locales/sr.yml redmine/config/locales/sr.yml --- redmine-0.9.3/config/locales/sr.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/sr.yml 2010-04-17 12:04:23.288586117 +0400 @@ -286,6 +286,7 @@ setting_emails_footer: Zaglavlje emaila label_example: Primer + label_access_denied: Access denied label_user: Korisnik label_user_plural: Korisnici label_user_new: Novi korisnik @@ -389,6 +390,8 @@ label_public_projects: Javni projekti label_open_issues: Otvoren label_open_issues_plural: Otvoreno + label_private_issues: private + label_private_issues_plural: private label_closed_issues: Zatvoren label_closed_issues_plural: Zatvoreno label_x_open_issues_abbr_on_total: @@ -738,6 +741,7 @@ setting_mail_handler_api_key: API key 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." field_parent_title: Parent page + field_is_private: Private issue label_issue_watchers: Posmatrači setting_commit_logs_encoding: Commit messages encoding button_quote: Quote @@ -751,6 +755,8 @@ permission_edit_own_time_entries: Edit own time logs permission_manage_public_queries: Manage public queries permission_add_issues: Add issues + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_log_time: Log spent time permission_view_changesets: View changesets permission_view_time_entries: View spent time diff -ur redmine-0.9.3/config/locales/sv.yml redmine/config/locales/sv.yml --- redmine-0.9.3/config/locales/sv.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/sv.yml 2010-04-17 12:04:23.289586269 +0400 @@ -321,6 +321,7 @@ field_default_value: Standardvärde field_comments_sorting: Visa kommentarer field_parent_title: Föräldersida + field_is_private: Private issue field_editable: Redigerbar field_watcher: Bevakare field_identity_url: OpenID URL @@ -389,6 +390,8 @@ permission_manage_versions: Hantera versioner permission_manage_categories: Hantera ärendekategorier permission_add_issues: Lägga till ärenden + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_edit_issues: Ändra ärenden permission_view_issues: Visa ärenden permission_manage_issue_relations: Hantera ärenderelationer @@ -443,6 +446,7 @@ project_module_repository: Versionsarkiv project_module_boards: Forum + label_access_denied: Access denied label_user: Användare label_user_plural: Användare label_user_new: Ny användare @@ -560,6 +564,8 @@ label_public_projects: Publika projekt label_open_issues: öppen label_open_issues_plural: öppna + label_private_issues: private + label_private_issues_plural: private label_closed_issues: stängd label_closed_issues_plural: stängda label_x_open_issues_abbr_on_total: diff -ur redmine-0.9.3/config/locales/th.yml redmine/config/locales/th.yml --- redmine-0.9.3/config/locales/th.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/th.yml 2010-04-17 12:04:23.290585680 +0400 @@ -292,6 +292,7 @@ project_module_repository: ที่เก็บต้นฉบับ project_module_boards: กระดานข้อความ + label_access_denied: Access denied label_user: ผู้ใช้ label_user_plural: ผู้ใช้ label_user_new: ผู้ใช้ใหม่ @@ -405,6 +406,8 @@ label_public_projects: โครงการสาธารณะ label_open_issues: เปิด label_open_issues_plural: เปิด + label_private_issues: private + label_private_issues_plural: private label_closed_issues: ปิด label_closed_issues_plural: ปิด label_x_open_issues_abbr_on_total: @@ -719,6 +722,7 @@ setting_mail_handler_api_key: API key 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." field_parent_title: Parent page + field_is_private: Private issue label_issue_watchers: Watchers setting_commit_logs_encoding: Commit messages encoding button_quote: Quote @@ -732,6 +736,8 @@ permission_edit_own_time_entries: Edit own time logs permission_manage_public_queries: Manage public queries permission_add_issues: Add issues + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_log_time: Log spent time permission_view_changesets: View changesets permission_view_time_entries: View spent time diff -ur redmine-0.9.3/config/locales/tr.yml redmine/config/locales/tr.yml --- redmine-0.9.3/config/locales/tr.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/tr.yml 2010-04-17 12:04:23.291585422 +0400 @@ -323,6 +323,7 @@ project_module_repository: Depo project_module_boards: Tartışma Alanı + label_access_denied: Access denied label_user: Kullanıcı label_user_plural: Kullanıcılar label_user_new: Yeni Kullanıcı @@ -434,6 +435,8 @@ label_public_projects: Genel Projeler label_open_issues: açık label_open_issues_plural: açık + label_private_issues: private + label_private_issues_plural: private label_closed_issues: kapalı label_closed_issues_plural: kapalı label_x_open_issues_abbr_on_total: @@ -740,6 +743,7 @@ label_generate_key: Generate a key setting_sequential_project_identifiers: Generate sequential project identifiers field_parent_title: Parent page + field_is_private: Private issue 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." text_enumeration_category_reassign_to: 'Reassign them to this value:' label_issue_watchers: Watchers @@ -762,6 +766,8 @@ permission_edit_own_time_entries: Edit own time logs permission_manage_public_queries: Manage public queries permission_add_issues: Add issues + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_log_time: Log spent time permission_view_changesets: View changesets permission_view_time_entries: View spent time diff -ur redmine-0.9.3/config/locales/uk.yml redmine/config/locales/uk.yml --- redmine-0.9.3/config/locales/uk.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/uk.yml 2010-04-17 12:04:23.291585422 +0400 @@ -270,6 +270,7 @@ setting_emails_footer: Підпис до електронної пошти setting_protocol: Протокол + label_access_denied: Access denied label_user: Користувач label_user_plural: Користувачі label_user_new: Новий користувач @@ -375,6 +376,8 @@ label_public_projects: Публічні проекти label_open_issues: відкрите label_open_issues_plural: відкриті + label_private_issues: private + label_private_issues_plural: private label_closed_issues: закрите label_closed_issues_plural: закриті label_x_open_issues_abbr_on_total: @@ -718,6 +721,7 @@ setting_mail_handler_api_key: API key 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." field_parent_title: Parent page + field_is_private: Private issue label_issue_watchers: Watchers setting_commit_logs_encoding: Commit messages encoding button_quote: Quote @@ -731,6 +735,8 @@ permission_edit_own_time_entries: Edit own time logs permission_manage_public_queries: Manage public queries permission_add_issues: Add issues + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_log_time: Log spent time permission_view_changesets: View changesets permission_view_time_entries: View spent time diff -ur redmine-0.9.3/config/locales/vi.yml redmine/config/locales/vi.yml --- redmine-0.9.3/config/locales/vi.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/vi.yml 2010-04-17 12:04:23.292585233 +0400 @@ -316,6 +316,7 @@ field_default_value: Giá trị mặc định field_comments_sorting: Liệt kê bình luận field_parent_title: Trang mẹ + field_is_private: Private issue setting_app_title: Tựa đề ứng dụng setting_app_subtitle: Tựa đề nhỏ của ứng dụng @@ -363,6 +364,7 @@ project_module_repository: Kho lưu trữ project_module_boards: Diễn đàn + label_access_denied: Access denied label_user: Tài khoản label_user_plural: Tài khoản label_user_new: Tài khoản mới @@ -475,6 +477,8 @@ label_public_projects: Các dự án công cộng label_open_issues: mở label_open_issues_plural: mở + label_private_issues: private + label_private_issues_plural: private label_closed_issues: đóng label_closed_issues_plural: đóng label_x_open_issues_abbr_on_total: @@ -795,6 +799,8 @@ permission_manage_versions: Quản lý phiên bản permission_manage_categories: Quản lý chủ đề permission_add_issues: Thêm vấn đề + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_edit_issues: Sửa vấn đề permission_manage_issue_relations: Quản lý quan hệ vấn đề permission_add_issue_notes: Thêm chú thích diff -ur redmine-0.9.3/config/locales/zh-TW.yml redmine/config/locales/zh-TW.yml --- redmine-0.9.3/config/locales/zh-TW.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/zh-TW.yml 2010-04-17 12:04:23.293585086 +0400 @@ -362,6 +362,7 @@ field_default_value: 預設值 field_comments_sorting: 註解排序 field_parent_title: 父頁面 + field_is_private: Private issue field_editable: 可編輯 field_watcher: 觀察者 field_identity_url: OpenID 網址 @@ -431,6 +432,8 @@ permission_manage_categories: 管理項目分類 permission_view_issues: 檢視項目 permission_add_issues: 新增項目 + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_edit_issues: 編輯項目 permission_manage_issue_relations: 管理項目關聯 permission_add_issue_notes: 新增筆記 @@ -484,6 +487,7 @@ project_module_repository: 版本控管 project_module_boards: 討論區 + label_access_denied: Access denied label_user: 用戶 label_user_plural: 用戶清單 label_user_new: 建立新用戶 @@ -602,6 +606,8 @@ label_public_projects: 公開專案 label_open_issues: 進行中 label_open_issues_plural: 進行中 + label_private_issues: private + label_private_issues_plural: private label_closed_issues: 已結束 label_closed_issues_plural: 已結束 label_x_open_issues_abbr_on_total: diff -ur redmine-0.9.3/config/locales/zh.yml redmine/config/locales/zh.yml --- redmine-0.9.3/config/locales/zh.yml 2010-02-28 13:28:08.000000000 +0300 +++ redmine/config/locales/zh.yml 2010-04-17 12:04:23.294584793 +0400 @@ -294,6 +294,7 @@ field_default_value: 默认值 field_comments_sorting: 显示注释 field_parent_title: 上级页面 + field_is_private: Private issue field_editable: 可编辑 field_watcher: 跟踪者 field_identity_url: OpenID URL @@ -363,6 +364,8 @@ permission_manage_categories: 管理问题类别 permission_view_issues: 查看问题 permission_add_issues: 新建问题 + permission_add_private_issues: Add private issues + permission_view_private_issues: View private issues permission_edit_issues: 更新问题 permission_manage_issue_relations: 管理问题关联 permission_add_issue_notes: 添加说明 @@ -416,6 +419,7 @@ project_module_repository: 版本库 project_module_boards: 讨论区 + label_access_denied: Access denied label_user: 用户 label_user_plural: 用户 label_user_new: 新建用户 @@ -533,6 +537,8 @@ label_public_projects: 公开的项目 label_open_issues: 打开 label_open_issues_plural: 打开 + label_private_issues: private + label_private_issues_plural: private label_closed_issues: 已关闭 label_closed_issues_plural: 已关闭 label_x_open_issues_abbr_on_total: diff -urN redmine-0.9.3/db/migrate/109_add_issues_private_flag.rb redmine/db/migrate/109_add_issues_private_flag.rb --- redmine-0.9.3/db/migrate/109_add_issues_private_flag.rb 1970-01-01 03:00:00.000000000 +0300 +++ redmine/db/migrate/109_add_issues_private_flag.rb 2010-04-17 12:04:23.295584721 +0400 @@ -0,0 +1,9 @@ +class AddIssuesPrivateFlag < ActiveRecord::Migration + def self.up + add_column :issues, :is_private, :boolean, :default => false, :null => false + end + + def self.down + remove_column :issues, :is_private + end +end diff -ur redmine-0.9.3/lib/redmine.rb redmine/lib/redmine.rb --- redmine-0.9.3/lib/redmine.rb 2010-02-28 13:28:08.000000000 +0300 +++ redmine/lib/redmine.rb 2010-04-17 15:21:50.023014599 +0400 @@ -44,6 +44,8 @@ :queries => :index, :reports => :issue_report} map.permission :add_issues, {:issues => [:new, :update_form]} + map.permission :add_private_issues, {:issues => [:new, :update_form]}, :require => :loggedin + map.permission :view_private_issues, {}, :require => :member map.permission :edit_issues, {:issues => [:edit, :reply, :bulk_edit, :update_form]} map.permission :manage_issue_relations, {:issue_relations => [:new, :destroy]} map.permission :add_issue_notes, {:issues => [:edit, :reply]} diff -ur redmine-0.9.3/test/fixtures/issues.yml redmine/test/fixtures/issues.yml --- redmine-0.9.3/test/fixtures/issues.yml 2010-02-28 13:28:05.000000000 +0300 +++ redmine/test/fixtures/issues.yml 2010-04-18 09:20:16.523128162 +0400 @@ -203,3 +203,18 @@ assigned_to_id: author_id: 2 status_id: 1 +issues_014: + created_on: <%= 5.days.ago.to_date.to_s(:db) %> + project_id: 1 + updated_on: <%= 2.days.ago.to_date.to_s(:db) %> + priority_id: 5 + subject: Private Issue on project 2 + id: 14 + fixed_version_id: + category_id: + description: Private Issue on project 2 + tracker_id: 1 + assigned_to_id: + author_id: 12 + status_id: 1 + is_private: 1 diff -ur redmine-0.9.3/test/fixtures/member_roles.yml redmine/test/fixtures/member_roles.yml --- redmine-0.9.3/test/fixtures/member_roles.yml 2010-02-28 13:28:05.000000000 +0300 +++ redmine/test/fixtures/member_roles.yml 2010-04-17 12:04:23.296584517 +0400 @@ -47,3 +47,13 @@ role_id: 2 member_id: 10 inherited_from: 10 +member_roles_012: + id: 12 + role_id: 3 + member_id: 11 + inherited_from: 11 +member_roles_013: + id: 13 + role_id: 6 + member_id: 12 + inherited_from: 12 diff -ur redmine-0.9.3/test/fixtures/members.yml redmine/test/fixtures/members.yml --- redmine-0.9.3/test/fixtures/members.yml 2010-02-28 13:28:05.000000000 +0300 +++ redmine/test/fixtures/members.yml 2010-04-17 12:04:23.297584144 +0400 @@ -60,3 +60,13 @@ project_id: 2 user_id: 8 mail_notification: false +members_011: + id: 11 + created_on: 2006-07-19 19:35:37 +02:00 + project_id: 1 + user_id: 12 +members_012: + id: 12 + created_on: 2006-07-19 19:35:47 +02:00 + project_id: 1 + user_id: 13 diff -ur redmine-0.9.3/test/fixtures/roles.yml redmine/test/fixtures/roles.yml --- redmine-0.9.3/test/fixtures/roles.yml 2010-02-28 13:28:05.000000000 +0300 +++ redmine/test/fixtures/roles.yml 2010-04-17 12:04:23.297584144 +0400 @@ -12,6 +12,8 @@ - :manage_categories - :view_issues - :add_issues + - :add_private_issues + - :view_private_issues - :edit_issues - :manage_issue_relations - :add_issue_notes @@ -63,6 +65,7 @@ - :manage_categories - :view_issues - :add_issues + - :view_private_issues - :edit_issues - :manage_issue_relations - :add_issue_notes @@ -106,6 +109,7 @@ - :manage_categories - :view_issues - :add_issues + - :add_private_issues - :edit_issues - :manage_issue_relations - :add_issue_notes @@ -181,4 +185,41 @@ - :view_changesets position: 5 +roles_006: + name: Reporter2 + id: 6 + builtin: 0 + permissions: | + --- + - :edit_project + - :manage_members + - :manage_versions + - :manage_categories + - :view_issues + - :add_private_issues + - :edit_issues + - :manage_issue_relations + - :add_issue_notes + - :move_issues + - :view_issue_watchers + - :save_queries + - :view_gantt + - :view_calendar + - :log_time + - :view_time_entries + - :manage_news + - :comment_news + - :view_documents + - :manage_documents + - :view_wiki_pages + - :view_wiki_edits + - :edit_wiki_pages + - :delete_wiki_pages + - :add_messages + - :manage_boards + - :view_files + - :manage_files + - :browse_repository + - :view_changesets + position: 6 diff -ur redmine-0.9.3/test/fixtures/users.yml redmine/test/fixtures/users.yml --- redmine-0.9.3/test/fixtures/users.yml 2010-02-28 13:28:05.000000000 +0300 +++ redmine/test/fixtures/users.yml 2010-04-17 12:04:23.298583951 +0400 @@ -152,5 +152,35 @@ id: 11 lastname: B Team type: Group - - \ No newline at end of file +users_012: + id: 12 + created_on: 2009-01-27 01:20:19 +03:00 + status: 1 + last_login_on: + language: 'ru' + hashed_password: 7feb7657aa7a7bf5aef3414a5084875f27192415 + updated_on: 2009-01-27 19:33:19 +03:00 + admin: false + mail: vasja@somenet.foo + lastname: Pupkin + firstname: Vasja + auth_source_id: + mail_notification: true + login: vasiliy + type: User +users_013: + id: 13 + created_on: 2009-01-27 01:20:29 +03:00 + status: 1 + last_login_on: + language: 'ru' + hashed_password: 7feb7657aa7a7bf5aef3414a5084875f27192416 + updated_on: 2009-01-27 19:33:29 +03:00 + admin: false + mail: petia@somenet.foo + lastname: Pupkin + firstname: Petia + auth_source_id: + mail_notification: true + login: petr + type: User diff -ur redmine-0.9.3/test/functional/issues_controller_test.rb redmine/test/functional/issues_controller_test.rb --- redmine-0.9.3/test/functional/issues_controller_test.rb 2010-02-28 13:28:05.000000000 +0300 +++ redmine/test/functional/issues_controller_test.rb 2010-04-17 12:04:23.299583936 +0400 @@ -411,6 +411,7 @@ def test_show_should_deny_member_access_without_permission Role.find(1).remove_permission!(:view_issues) + Role.find(1).remove_permission!(:view_private_issues) @request.session[:user_id] = 2 get :show, :id => 1 assert_response 403 @@ -458,6 +459,54 @@ assert_not_nil assigns(:issue) end + def test_show_private_issue_by_manager + @request.session[:user_id] = 2 + get :show, :id => 14 + assert_response :success + assert_tag :td, :attributes => { :class => 'private-issue'} + end + + def test_show_private_issue_by_admin + @request.session[:user_id] = 1 + get :show, :id => 14 + assert_response :success + assert_tag :td, :attributes => { :class => 'private-issue'} + end + + def test_show_private_issue_by_developer + @request.session[:user_id] = 3 + get :show, :id => 14 + assert_response :success + # Developer can view private issues + assert_tag :td, :attributes => { :class => 'private-issue'} + end + + def test_show_private_issue_by_issue_author + # issue author always can browse his issue + @request.session[:user_id] = 12 + get :show, :id => 14 + assert_response :success + assert_tag :input, :attributes => { :name => 'issue[is_private]'} + assert_tag :td, :attributes => { :class => 'private-issue'} + end + + def test_show_private_issue_by_non_member + @request.session[:user_id] = 4 + get :show, :id => 14 + assert_response :success + assert_no_tag :input, :attributes => { :name => 'issue[is_private]'} + assert_no_tag :td, :attributes => { :class => 'private-issue'} + assert_tag :p, :attributes => { :class => 'nodata'} + end + + def test_show_private_issue_by_anonymous + get :show, :id => 14 + assert_response :success + assert_no_tag :input, :attributes => { :name => 'issue[is_private]'} + assert_no_tag :td, :attributes => { :class => 'private-issue'} + assert_tag :p, :attributes => { :class => 'nodata'} + end + def test_get_new @request.session[:user_id] = 2 get :new, :project_id => 1, :tracker_id => 1 @@ -468,6 +517,49 @@ :value => 'Default string' } end + def test_get_new_manager + # Manager have add_private_issue permission + @request.session[:user_id] = 2 + get :new, :project_id => 1, :tracker_id => 1 + assert_response :success + assert_template 'new' + assert_tag :input, :attributes => { :name => 'issue[is_private]'} + end + + def test_get_new_developer + @request.session[:user_id] = 3 + get :new, :project_id => 1, :tracker_id => 1 + assert_response :success + assert_template 'new' + # Developer can't change issue type + assert_no_tag :input, :attributes => { :name => 'issue[is_private]'} + end + + def test_get_new_reporter + @request.session[:user_id] = 12 + get :new, :project_id => 1, :tracker_id => 1 + assert_response :success + assert_template 'new' + # Reporter can add private issue + assert_tag :input, :attributes => { :name => 'issue[is_private]'} + end + + def test_get_new_admin + @request.session[:user_id] = 1 + get :new, :project_id => 1, :tracker_id => 1 + assert_response :success + assert_template 'new' + assert_tag :input, :attributes => { :name => 'issue[is_private]'} + end + + def test_get_new_reporter2 + @request.session[:user_id] = 13 + get :new, :project_id => 1, :tracker_id => 1 + assert_response :success + assert_template 'new' + assert_no_tag :input, :attributes => { :name => 'issue[is_private]'} + end + def test_get_new_without_tracker_id @request.session[:user_id] = 2 get :new, :project_id => 1 diff -ur redmine-0.9.3/test/functional/projects_controller_test.rb redmine/test/functional/projects_controller_test.rb --- redmine-0.9.3/test/functional/projects_controller_test.rb 2010-02-28 13:28:05.000000000 +0300 +++ redmine/test/functional/projects_controller_test.rb 2010-04-17 12:04:23.300583498 +0400 @@ -575,6 +575,82 @@ } end + #private issue are not visible for Anonymous user in global Activity + def test_private_issue_global_activity_for_anonymous + get :activity + assert_response :success + assert_template 'activity' + assert_not_nil assigns(:events_by_day) + + assert_no_tag :tag => "h3", + :content => /#{5.day.ago.to_date.day}/, + :sibling => { :tag => "dl", + :child => { :tag => "dt", + :attributes => { :class => /issue/ }, + :child => { :tag => "a", + :content => /#{Issue.find(14).subject}/, + } + } + } + end + + def test_private_issue_global_activity_for_manager + @request.session[:user_id] = 2 # manager + get :activity + assert_response :success + assert_template 'activity' + assert_not_nil assigns(:events_by_day) + + assert_tag :tag => "h3", + :content => /#{5.day.ago.to_date.day}/, + :sibling => { :tag => "dl", + :child => { :tag => "dt", + :attributes => { :class => /issue/ }, + :child => { :tag => "a", + :content => /#{Issue.find(14).subject}/, + } + } + } + end + + def test_private_issue_global_activity_for_developer + @request.session[:user_id] = 3 # developer + get :activity + assert_response :success + assert_template 'activity' + assert_not_nil assigns(:events_by_day) + + assert_tag :tag => "h3", + :content => /#{5.day.ago.to_date.day}/, + :sibling => { :tag => "dl", + :child => { :tag => "dt", + :attributes => { :class => /issue/ }, + :child => { :tag => "a", + :content => /#{Issue.find(14).subject}/, + } + } + } + end + + def test_private_issue_global_activity_for_non_member + @request.session[:user_id] = 4 # does not have any role in project #1 + get :activity + assert_response :success + assert_template 'activity' + assert_not_nil assigns(:events_by_day) + + assert_no_tag :tag => "h3", + :content => /#{5.day.ago.to_date.day}/, + :sibling => { :tag => "dl", + :child => { :tag => "dt", + :attributes => { :class => /issue/ }, + :child => { :tag => "a", + :content => /#{Issue.find(14).subject}/, + } + } + } + end + def test_user_activity get :activity, :user_id => 2 assert_response :success diff -ur redmine-0.9.3/test/unit/issue_test.rb redmine/test/unit/issue_test.rb --- redmine-0.9.3/test/unit/issue_test.rb 2010-02-28 13:28:05.000000000 +0300 +++ redmine/test/unit/issue_test.rb 2010-04-17 12:04:23.301583352 +0400 @@ -499,6 +499,54 @@ assert !Issue.new(:due_date => 1.day.ago.to_date, :status => IssueStatus.find(:first, :conditions => {:is_closed => true})).overdue? end + def test_default_assign + # Test fixtures contain "add_private_issues" permissions + # Anonimous + issue = Issue.new(:project_id => 1, :tracker_id => 1, :author_id => 6, :status_id => 1, :is_private => true, :priority => IssuePriority.all.first, :subject => 'test_private_create', :description => 'IssueTest#test_private_create', :estimated_hours => '5:30') + assert issue.save + issue.reload + assert_equal false, issue.is_private + # Manager + issue = Issue.new(:project_id => 1, :tracker_id => 1, :author_id => 2, :status_id => 1, :is_private => true, :priority => IssuePriority.all.first, :subject => 'test_private_create', :description => 'IssueTest#test_private_create', :estimated_hours => '5:30') + assert issue.save + issue.reload + assert_equal true, issue.is_private + issue = Issue.new(:project_id => 1, :tracker_id => 1, :author_id => 2, :status_id => 1, :is_private => false, :priority => IssuePriority.all.first, :subject => 'test_private_create', :description => 'IssueTest#test_private_create', :estimated_hours => '5:30') + assert issue.save + issue.reload + assert_equal false, issue.is_private + # Reporter_is_private + issue = Issue.new(:project_id => 1, :tracker_id => 1, :author_id => 13, :status_id => 1, :is_private => false, :priority => IssuePriority.all.first, :subject => 'test_private_create', :description => 'IssueTest#test_private_create', :estimated_hours => '5:30') + assert issue.save + issue.reload + assert_equal true, issue.is_private + end + + def test_visible + issue = Issue.new(:project_id => 1, :tracker_id => 1, :author_id => 13, :status_id => 1, :is_private => true, :priority => IssuePriority.all.first, :subject => 'test_private_create', :description => 'IssueTest#test_private_create', :estimated_hours => '5:30') + assert issue.save + issue.reload + # Test fixtures contain "view_private_issues" permissions + # User with id #2 in project with id #1 has Manager role + assert_equal true, issue.visible?(User.find(2), Project.find(1)) + # User with id #3 in project with id #1 has Developer role + assert_equal true, issue.visible?(User.find(3), Project.find(1)) + # User with id #6 has Anonymous role + assert_equal false, issue.visible?(User.find(6), Project.find(1)) + # User with id #4 does not have any role in project #1 + assert_equal false, issue.visible?(User.find(4), Project.find(1)) + # User with id #12 in project with id #1 has Reporter role + assert_equal false, issue.visible?(User.find(12), Project.find(1)) + # Test for author + assert_equal true, issue.visible?(User.find(13), Project.find(1)) + # Test for assinged user #4 + issue.assigned_to=User.find(4) + assert_equal true, issue.visible?(User.find(4), Project.find(1)) + # Test for watcher #12 + issue.add_watcher(User.find(12)) + assert_equal true, issue.visible?(User.find(12), Project.find(1)) + end + def test_assignable_users assert_kind_of User, Issue.find(1).assignable_users.first end diff -ur redmine-0.9.3/test/unit/project_test.rb redmine/test/unit/project_test.rb --- redmine-0.9.3/test/unit/project_test.rb 2010-02-28 13:28:05.000000000 +0300 +++ redmine/test/unit/project_test.rb 2010-04-17 12:04:23.302583193 +0400 @@ -136,10 +136,10 @@ end def test_destroy - # 2 active members - assert_equal 2, @ecookbook.members.size + # 4 active members + assert_equal 4, @ecookbook.members.size # and 1 is locked - assert_equal 3, Member.find(:all, :conditions => ['project_id = ?', @ecookbook.id]).size + assert_equal 5, Member.find(:all, :conditions => ['project_id = ?', @ecookbook.id]).size # some boards assert @ecookbook.boards.any?