]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/users_controller.rb
Add extra user transitions needed by the administrators
[rails.git] / app / controllers / users_controller.rb
index ea04e14f6a9d4757d693e547f8e8cbadd8c4d2b4..39a191d841effafde6ca2a9d4b5a90f70270d57f 100644 (file)
@@ -202,8 +202,10 @@ class UsersController < ApplicationController
   def set_status
     @user.activate! if params[:event] == "activate"
     @user.confirm! if params[:event] == "confirm"
+    @user.unconfirm! if params[:event] == "unconfirm"
     @user.hide! if params[:event] == "hide"
     @user.unhide! if params[:event] == "unhide"
+    @user.unsuspend! if params[:event] == "unsuspend"
     redirect_to user_path(:display_name => params[:display_name])
   end