]> source.dussan.org Git - redmine.git/commitdiff
Fixed find_issues logic.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 2 Dec 2012 10:25:30 +0000 (10:25 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 2 Dec 2012 10:25:30 +0000 (10:25 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10905 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/application_controller.rb

index 05a4b87fa0b70dfc8b39b9c6d3ee1373d84d5efb..585ac57882a0cf810edd90c43670d71ead5a4a2b 100644 (file)
@@ -293,7 +293,7 @@ class ApplicationController < ActionController::Base
   def find_issues
     @issues = Issue.find_all_by_id(params[:id] || params[:ids])
     raise ActiveRecord::RecordNotFound if @issues.empty?
-    raise Unauthorized if @issues.all?(&:visible?)
+    raise Unauthorized unless @issues.all?(&:visible?)
     @projects = @issues.collect(&:project).compact.uniq
     @project = @projects.first if @projects.size == 1
   rescue ActiveRecord::RecordNotFound