patch.diff

patch by Oliver Luethi - Go MAEDA, 2016-03-23 09:26

Download (1.12 KB)

View differences:

app/controllers/attachments_controller.rb
22 22
  before_filter :delete_authorize, :only => :destroy
23 23
  before_filter :authorize_global, :only => :upload
24 24

  
25
  accept_api_auth :show, :download, :thumbnail, :upload
25
  accept_api_auth :show, :download, :thumbnail, :upload, :destroy
26 26

  
27 27
  def show
28 28
    respond_to do |format|
......
128 128
    respond_to do |format|
129 129
      format.html { redirect_to_referer_or project_path(@project) }
130 130
      format.js
131
      format.api { render_api_ok }
131 132
    end
132 133
  end
133 134

  
134
-