summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
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)}