Reverts r19569 (#33071).

404 error after deleting an attachment.


git-svn-id: http://svn.redmine.org/redmine/trunk@19579 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2020-03-14 03:49:44 +00:00
parent 1e929c4328
commit af36d450e4
14 changed files with 2 additions and 47 deletions

View File

@@ -25,8 +25,6 @@ class AttachmentsController < ApplicationController
before_action :delete_authorize, :only => :destroy
before_action :authorize_global, :only => :upload
require_sudo_mode :destroy
# Disable check for same origin requests for JS files, i.e. attachments with
# MIME type text/javascript.
skip_after_action :verify_same_origin_request, :only => :download