Project

General

Profile

Patch #14828 » patch.diff

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

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/2)