From 2524600aeb5003e06762dcb3311c00f1279f1ff6 Mon Sep 17 00:00:00 2001 From: z9hang Date: Sat, 17 May 2014 16:20:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=B4=B4=E5=90=A7=E7=95=99?= =?UTF-8?q?=E8=A8=80=E5=88=A0=E9=99=A4=E9=99=84=E4=BB=B6=E5=90=8E=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/attachments_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index d6c90ccf4..51259bb5d 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -22,7 +22,6 @@ class AttachmentsController < ApplicationController before_filter :authorize_global, :only => :upload before_filter :login_without_softapplication, only: [:download] - accept_api_auth :show, :download, :upload def show @@ -125,7 +124,7 @@ class AttachmentsController < ApplicationController end respond_to do |format| - format.html { redirect_to_referer_or project_path(@project) } + format.html { redirect_to_referer_or forum_memo_path(@attachment.container.forum,@attachment.container) } format.js end end