mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00:00
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
This commit is contained in:
parent
62f7551d57
commit
eb9bd3e836
@ -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)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user