diff options
author | Andrew8xx8 <avk@8xx8.ru> | 2013-03-04 18:52:30 +0400 |
---|---|---|
committer | Andrew8xx8 <avk@8xx8.ru> | 2013-03-04 18:52:30 +0400 |
commit | 0d9a6fe7b16e52cc4d5595d6b26552c39911cf07 (patch) | |
tree | 96e0725dfb072df84198f1c2e2407ceda41caa3b /app/controllers/admin | |
parent | 9a06dd4aa1ab008b6e12205ec3f8d00a50f79aa1 (diff) | |
download | gitlab-ce-0d9a6fe7b16e52cc4d5595d6b26552c39911cf07.tar.gz |
User's blocked field refactored to use state machine
Diffstat (limited to 'app/controllers/admin')
-rw-r--r-- | app/controllers/admin/users_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/users_controller.rb b/app/controllers/admin/users_controller.rb index 2e7114e10a9..43e6f09904f 100644 --- a/app/controllers/admin/users_controller.rb +++ b/app/controllers/admin/users_controller.rb @@ -45,7 +45,7 @@ class Admin::UsersController < Admin::ApplicationController end def unblock - if admin_user.update_attribute(:blocked, false) + if admin_user.activate redirect_to :back, alert: "Successfully unblocked" else redirect_to :back, alert: "Error occured. User was not unblocked" |