Feature #37674 » 0003-confirm-user-update-deletion.patch
app/controllers/users_controller.rb | ||
---|---|---|
208 | 208 |
if api_request? || params[:lock] || params[:confirm] == @user.login |
209 | 209 |
if params[:lock] |
210 | 210 |
@user.update_attribute :status, User::STATUS_LOCKED |
211 |
flash[:notice] = l(:notice_successful_update) |
|
211 | 212 |
else |
212 | 213 |
@user.destroy |
214 |
flash[:notice] = l(:notice_successful_delete) |
|
213 | 215 |
end |
214 | 216 |
respond_to do |format| |
215 | 217 |
format.html {redirect_back_or_default(users_path)} |