From d554bf1ea9585b7ed5810341f379f29a8bc96739 Mon Sep 17 00:00:00 2001 From: yanxd Date: Thu, 10 Apr 2014 16:23:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E4=B8=8B=E8=BD=BD=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E8=BF=87=E6=BB=A4=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/attachments_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index 01d2ea890..1c02326a7 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -20,6 +20,8 @@ class AttachmentsController < ApplicationController before_filter :file_readable, :read_authorize, :only => [:show, :thumbnail]#Modified by young before_filter :delete_authorize, :only => :destroy before_filter :authorize_global, :only => :upload + + before_filter :require_login, only: [:download] accept_api_auth :show, :download, :upload