- # activate a user, allowing them to log in
- def activate
- @this_user.update_attributes(:status => "active")
- redirect_to :controller => 'user', :action => 'view', :display_name => params[:display_name]
- end
-
- ##
- # deactivate a user, preventing them from logging in
- def deactivate
- @this_user.update_attributes(:status => "pending")
- redirect_to :controller => 'user', :action => 'view', :display_name => params[:display_name]
- end
-
- ##
- # confirm a user, overriding any suspension triggered by spam scoring
- def confirm
- @this_user.update_attributes(:status => "confirmed")
- redirect_to :controller => 'user', :action => 'view', :display_name => params[:display_name]
- end
-
- ##
- # hide a user, marking them as logically deleted
- def hide
- @this_user.update_attributes(:status => "deleted")
- redirect_to :controller => 'user', :action => 'view', :display_name => params[:display_name]
- end
-
- ##
- # unhide a user, clearing the logically deleted flag
- def unhide
- @this_user.update_attributes(:status => "active")