summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-09-20 03:37:26 +0000
committerGo MAEDA <maeda@farend.jp>2022-09-20 03:37:26 +0000
commiteb9bd3e836da258d7ae235d141bdb8fe3cbe4542 (patch)
treefb159e114a9101131604a34c5c5b87ad68f9812b /app/controllers
parent62f7551d57a4a0c77030a35b8822a91d524c8ea7 (diff)
downloadredmine-eb9bd3e836da258d7ae235d141bdb8fe3cbe4542.tar.gz
redmine-eb9bd3e836da258d7ae235d141bdb8fe3cbe4542.zip
Confirm user update / deletion (#37674).
Patch by Jens Krämer. git-svn-id: https://svn.redmine.org/redmine/trunk@21825 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/users_controller.rb2
1 files changed, 2 insertions, 0 deletions
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)}