diff options
author | Go MAEDA <maeda@farend.jp> | 2020-03-10 03:26:23 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-03-10 03:26:23 +0000 |
commit | 463e8163fc7edfea8319d7635866cc1f8d68b6ad (patch) | |
tree | 0711dc718dfba7b4a7a46ea97cd71173ca6e9bf1 /app/controllers/versions_controller.rb | |
parent | 852290edb01a5193d0d638007bfd48ef5b8a5c14 (diff) | |
download | redmine-463e8163fc7edfea8319d7635866cc1f8d68b6ad.tar.gz redmine-463e8163fc7edfea8319d7635866cc1f8d68b6ad.zip |
Require sudo mode for actions to delete contents (#33071).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19569 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/versions_controller.rb')
-rw-r--r-- | app/controllers/versions_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/versions_controller.rb b/app/controllers/versions_controller.rb index 16dd35c99..7554014f6 100644 --- a/app/controllers/versions_controller.rb +++ b/app/controllers/versions_controller.rb @@ -27,6 +27,8 @@ class VersionsController < ApplicationController accept_api_auth :index, :show, :create, :update, :destroy + require_sudo_mode :destroy + helper :custom_fields helper :projects |