Project

General

Profile

Patch #35769 » repositories_controller.rb.patch

patch file - Jan Catrysse, 2021-08-17 01:17

View differences:

app/controllers/repositories_controller.rb → app/controllers/repositories_controller.rb (date 1629149621343)
35 35
  before_action :find_changeset, :only => [:revision, :add_related_issue, :remove_related_issue]
36 36
  before_action :authorize
37 37
  accept_rss_auth :revisions
38
  accept_api_auth :add_related_issue, :remove_related_issue
38
  accept_api_auth :add_related_issue, :remove_related_issue, :revision
39 39

  
40 40
  rescue_from Redmine::Scm::Adapters::CommandFailed, :with => :show_error_command_failed
41 41

  
......
222 222
    respond_to do |format|
223 223
      format.html
224 224
      format.js {render :layout => false}
225
      format.api
225 226
    end
226 227
  end
227 228

  
(1-1/2)