修正了文件下载权限和文档查看权限

This commit is contained in:
zhangyang 2013-08-07 09:48:59 +08:00
parent 1ed9089212
commit d5cc2246a9
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
class AttachmentsController < ApplicationController
before_filter :find_project, :except => :upload
before_filter :file_readable, :read_authorize, :only => [:show, :download, :thumbnail]
before_filter :file_readable, :read_authorize, :only => [:show, :thumbnail]#Modified by young
before_filter :delete_authorize, :only => :destroy
before_filter :authorize_global, :only => :upload

View File

@ -22,7 +22,7 @@ class DocumentsController < ApplicationController
before_filter :find_project_by_project_id, :only => [:index, :new, :create]
before_filter :find_model_object, :except => [:index, :new, :create]
before_filter :find_project_from_association, :except => [:index, :new, :create]
before_filter :authorize
before_filter :authorize, :except => [:index]#Added by young
helper :attachments