From 2c331bf1a58321b15fc24cf468fae122508f4a4c Mon Sep 17 00:00:00 2001 From: chris Date: Thu, 4 Jul 2013 14:20:13 +0800 Subject: [PATCH] Revert non rulingcom email constraint --- app/controllers/admin/member_selects_controller.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/controllers/admin/member_selects_controller.rb b/app/controllers/admin/member_selects_controller.rb index 145c9ac91..64c8b7256 100644 --- a/app/controllers/admin/member_selects_controller.rb +++ b/app/controllers/admin/member_selects_controller.rb @@ -73,7 +73,8 @@ class Admin::MemberSelectsController < OrbitBackendController @field = params[:field] roles = Role.all @sorted_users = roles.inject({}) do |users, role| - users[role] = role.users.where(:email.not => /guest|rulingcom/) - selected_users + # users[role] = role.users.where(:email.not => /guest|rulingcom/) - selected_users + users[role] = role.users.where(:email.not => /guest/) - selected_users users end end @@ -82,7 +83,8 @@ class Admin::MemberSelectsController < OrbitBackendController roles = Role.find(params[:role_ids]) rescue [] @field = params[:field] @users = roles.inject([]) do |users, role| - users += role.users.where(:email.not => /guest|rulingcom/).entries + # users += role.users.where(:email.not => /guest|rulingcom/).entries + users += role.users.where(:email.not => /guest/).entries users end render 'admin/member_selects/update_selected_users'