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/repositories_controller.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/controllers/repositories_controller.rb') diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 0da256953..81fe6c5a7 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -36,6 +36,8 @@ class RepositoriesController < ApplicationController before_action :authorize accept_rss_auth :revisions + require_sudo_mode :destroy + rescue_from Redmine::Scm::Adapters::CommandFailed, :with => :show_error_command_failed def new -- cgit v1.2.3