diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-02 17:43:36 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-02 17:43:36 +0000 |
commit | 3dc73dcb88473139bdf9f2a3b95c5b2f9df8875f (patch) | |
tree | 3bad611caf98616413dde8dd106d2fa81ffd9699 /app/controllers/issues_controller.rb | |
parent | b13f85e456bba57e5d7079eb00cb594aab60406b (diff) | |
download | redmine-3dc73dcb88473139bdf9f2a3b95c5b2f9df8875f.tar.gz redmine-3dc73dcb88473139bdf9f2a3b95c5b2f9df8875f.zip |
Fixed: associated changesets from other projects are not visible if the current project doesn't have the repository module enabled (#3087).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8749 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/issues_controller.rb')
-rw-r--r-- | app/controllers/issues_controller.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 9a64ba062..b7f4a7c84 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -109,10 +109,8 @@ class IssuesController < ApplicationController @journals.each_with_index {|j,i| j.indice = i+1} @journals.reverse! if User.current.wants_comments_in_reverse_order? - if User.current.allowed_to?(:view_changesets, @project) - @changesets = @issue.changesets.visible.all - @changesets.reverse! if User.current.wants_comments_in_reverse_order? - end + @changesets = @issue.changesets.visible.all + @changesets.reverse! if User.current.wants_comments_in_reverse_order? @relations = @issue.relations.select {|r| r.other_issue(@issue) && r.other_issue(@issue).visible? } @allowed_statuses = @issue.new_statuses_allowed_to(User.current) |