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'