Project

General

Profile

Feature #22307 ยป patch.diff

Oliver Luethi, 2016-03-23 09:12

View differences:

app/controllers/attachments_controller.rb
before_filter :delete_authorize, :only => :destroy
before_filter :authorize_global, :only => :upload
accept_api_auth :show, :download, :thumbnail, :upload
accept_api_auth :show, :download, :thumbnail, :upload, :destroy
def show
respond_to do |format|
......
respond_to do |format|
format.html { redirect_to_referer_or project_path(@project) }
format.js
format.api { render_api_ok }
end
end
    (1-1/1)