##// END OF EJS Templates
Fixed find_issues logic....
Jean-Philippe Lang -
r10678:e97a3ab97bfa
parent child
Show More
@@ -293,7 +293,7 class ApplicationController < ActionController::Base
293 293 def find_issues
294 294 @issues = Issue.find_all_by_id(params[:id] || params[:ids])
295 295 raise ActiveRecord::RecordNotFound if @issues.empty?
296 raise Unauthorized if @issues.all?(&:visible?)
296 raise Unauthorized unless @issues.all?(&:visible?)
297 297 @projects = @issues.collect(&:project).compact.uniq
298 298 @project = @projects.first if @projects.size == 1
299 299 rescue ActiveRecord::RecordNotFound
General Comments 0
You need to be logged in to leave comments. Login now