给下载添加登录过滤器

This commit is contained in:
yanxd 2014-04-10 16:23:40 +08:00
parent bfa6f800d9
commit d554bf1ea9
1 changed files with 2 additions and 0 deletions

View File

@ -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