Feature #22307 ยป patch.diff
| 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
|
||