修正了文件下载权限和文档查看权限
This commit is contained in:
parent
1ed9089212
commit
d5cc2246a9
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue