diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 24ab2e0a3..339399329 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -81,7 +81,7 @@ class IssuesController < ApplicationController respond_to do |format| format.html { render :template => 'issues/index', :layout => !request.xhr? } format.api { - Issue.load_relations(@issues) if include_in_api_response?('relations') + Issue.load_visible_relations(@issues) if include_in_api_response?('relations') } format.atom { render_feed(@issues, :title => "#{@project || Setting.app_title}: #{l(:label_issue_plural)}") } format.csv { send_data(issues_to_csv(@issues, @project, @query, params), :type => 'text/csv; header=present', :filename => 'export.csv') }