FEATURE: phase 1 of supporting multiple email addresses

This commit is contained in:
Leo McArdle
2017-07-20 11:22:27 +09:00
committed by Guo Xiang Tan
parent 739794f0cb
commit d0b027d88d
35 changed files with 337 additions and 80 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ class GroupsController < ApplicationController
elsif params[:user_ids].present?
User.find(params[:user_ids].split(","))
elsif params[:user_emails].present?
User.where(email: params[:user_emails].split(","))
User.with_email(params[:user_emails].split(","))
else
raise Discourse::InvalidParameters.new(
'user_ids or usernames or user_emails must be present'