mirror of
https://github.com/redmine/redmine.git
synced 2025-11-04 20:35:57 +01:00
Use .before_action instead of .before_filter.
git-svn-id: http://svn.redmine.org/redmine/trunk@15655 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -16,11 +16,11 @@
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
class AttachmentsController < ApplicationController
|
||||
before_filter :find_attachment, :only => [:show, :download, :thumbnail, :destroy]
|
||||
before_filter :find_editable_attachments, :only => [:edit, :update]
|
||||
before_filter :file_readable, :read_authorize, :only => [:show, :download, :thumbnail]
|
||||
before_filter :delete_authorize, :only => :destroy
|
||||
before_filter :authorize_global, :only => :upload
|
||||
before_action :find_attachment, :only => [:show, :download, :thumbnail, :destroy]
|
||||
before_action :find_editable_attachments, :only => [:edit, :update]
|
||||
before_action :file_readable, :read_authorize, :only => [:show, :download, :thumbnail]
|
||||
before_action :delete_authorize, :only => :destroy
|
||||
before_action :authorize_global, :only => :upload
|
||||
|
||||
accept_api_auth :show, :download, :thumbnail, :upload, :destroy
|
||||
|
||||
|
||||
Reference in New Issue
Block a user