diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-09-19 16:51:21 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-12-04 09:32:38 +0000 |
commit | 881d393aff2598c4a0c4a23fee85ebe9fe478b03 (patch) | |
tree | c95b71e8e609e878006bd495f06bb77f469c7f59 /app/controllers/admin_user_controller.rb | |
parent | 5b709d61c1c897f10d9900018fecca4c10731673 (diff) |
Add a can_make_batch_requests flag to user model
Make it updatable via the user admin page.
Diffstat (limited to 'app/controllers/admin_user_controller.rb')
-rw-r--r-- | app/controllers/admin_user_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/admin_user_controller.rb b/app/controllers/admin_user_controller.rb index 929b93e0e..940a5fe8f 100644 --- a/app/controllers/admin_user_controller.rb +++ b/app/controllers/admin_user_controller.rb @@ -48,6 +48,7 @@ class AdminUserController < AdminController @admin_user.ban_text = params[:admin_user][:ban_text] @admin_user.about_me = params[:admin_user][:about_me] @admin_user.no_limit = params[:admin_user][:no_limit] + @admin_user.can_make_batch_requests = params[:admin_user][:can_make_batch_requests] if @admin_user.valid? @admin_user.save! |