From 463e8163fc7edfea8319d7635866cc1f8d68b6ad Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Tue, 10 Mar 2020 03:26:23 +0000 Subject: 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 --- app/controllers/news_controller.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/controllers/news_controller.rb') 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 -- cgit v1.2.3