@@ -54,7 +54,15 @@ class Issue < ActiveRecord::Base
returnwhere(confidential: false)ifuser.blank?
returnallifuser.admin?
where('issues.confidential = false OR (issues.confidential = true AND (issues.author_id = :user_id OR issues.assignee_id = :user_id OR issues.project_id IN(:project_ids)))',user_id: user.id,project_ids: user.authorized_projects.select(:id))