Merge branch 'develop' into cs_optimize_txz

This commit is contained in:
Tim 2016-07-20 15:14:32 +08:00
commit f3494489c2
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,8 @@
class AttachmentsController < ApplicationController class AttachmentsController < ApplicationController
layout "users_base" layout "users_base"
before_filter :verify_authenticity_token, only: [:uploa]
before_filter :find_project, :only => [:show, :download, :thumbnail, :destroy, :delete_homework]#, :except => [:upload, :autocomplete] before_filter :find_project, :only => [:show, :download, :thumbnail, :destroy, :delete_homework]#, :except => [:upload, :autocomplete]
before_filter :file_readable, :read_authorize, :only => [:show, :thumbnail]#Modified by young before_filter :file_readable, :read_authorize, :only => [:show, :thumbnail]#Modified by young
before_filter :delete_authorize, :only => [:destroy] before_filter :delete_authorize, :only => [:destroy]