From eb9bd3e836da258d7ae235d141bdb8fe3cbe4542 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Tue, 20 Sep 2022 03:37:26 +0000 Subject: [PATCH] Confirm user update / deletion (#37674). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Patch by Jens Krämer. git-svn-id: https://svn.redmine.org/redmine/trunk@21825 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/users_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 0d80fc33a..cd0165844 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -205,8 +205,10 @@ class UsersController < ApplicationController if api_request? || params[:lock] || params[:confirm] == @user.login if params[:lock] @user.update_attribute :status, User::STATUS_LOCKED + flash[:notice] = l(:notice_successful_update) else @user.destroy + flash[:notice] = l(:notice_successful_delete) end respond_to do |format| format.html {redirect_back_or_default(users_path)} -- 2.39.5