Feature #2770 » f2770-unauthorized-attachments.patch
| app/controllers/attachments_controller.rb 2013-02-14 09:43:26.000000000 -0600 | ||
|---|---|---|
|
before_filter :file_readable, :read_authorize, :only => [:show, :download]
|
||
|
before_filter :delete_authorize, :only => :destroy
|
||
|
before_filter :authorize_global, :only => :upload
|
||
|
skip_before_filter :check_if_login_required
|
||
|
accept_api_auth :show, :download, :upload
|
||