Patch #22308 ยป patch.diff
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 |