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/news_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/news_controller.rb')
-rw-r--r-- | app/controllers/news_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/news_controller.rb b/app/controllers/news_controller.rb index 511f10ddb..deecca692 100644 --- a/app/controllers/news_controller.rb +++ b/app/controllers/news_controller.rb @@ -28,6 +28,8 @@ class NewsController < ApplicationController accept_rss_auth :index accept_api_auth :index, :show, :create, :update, :destroy + require_sudo_mode :destroy + helper :watchers helper :attachments |