Only consider active group memberships when searching users
Only consider active group memberships when searching users

Fixes CNVS-15692

Test plan:
 - Create a course with a section
 - Create 3 students and enroll them in the course under the
   section you created
 - Create a teacher and enroll them in the course under that
   same section
 - On the course's "People" page, click the teacher's name, then
   limit them to viewing only students in their same section
 - Create a group set with two groups
 - Add student #1 to group #1 and students #2 and #3 to group #2
 - As the teacher, open the inbox, create a new message, choose to
   add all users in group #1 as recipients, and verify that only
   student #1 shows up
 - Choose to add all users in group #2 as recipients and verify
   that only students #2 and #3 show up
 - As an admin, move student #1 to group #2 and students #2 and #3
   to group #1
 - As the teacher, open the inbox, create a new message, choose to
   add all users in group #1 as recipients, and verify that only
   students #1 and #2 show up
 - Choose to add all users in group #2 as recipients and verify
   that only student #1 shows up

Change-Id: If8016fef727415cc8f590017f84a07c09c78c0eb
Reviewed-on: https://gerrit.instructure.com/57269
Tested-by: Jenkins
Reviewed-by: Joel Hough <4816dabf8db1bc6cac35b3a24cab2ff844b5b0c7@instructure.com>
QA-Review: Adrian Russell <5867b55c34ec258a06bcc4d9b6dbda2c79313b40@instructure.com>
Product-Review: Alex Boyd <6bb5a335b0b6c251e818c0de653d342158f949f9@instructure.com>

SwinburneOnline/canvas-lms,redconfetti/canvas-lms,whalejasmine/canvas-lms,whalejasmine/canvas-lms,HotChalk/canvas-lms,instructure/canvas-lms,snehakachroo1/LSI_replica,eCNAP/CANVAS,venturehive/canvas-lms,roxolan/canvas-lms,efrj/canvas-lms,redconfetti/canvas-lms,tgroshon/canvas-lms,kyroskoh/canvas-lms,matematikk-mooc/canvas-lms,narigone/canvas,HotChalk/canvas-lms,instructure/canvas-lms,dgynn/canvas-lms,sfu/canvas-lms,matematikk-mooc/canvas-lms,utkarshx/canvas-lms,kyroskoh/canvas-lms,leftplusrightllc/canvas-lms,narigone/canvas,sfu/canvas-lms,tgroshon/canvas-lms,HotChalk/canvas-lms,sdeleon28/canvas-lms,grahamb/canvas-lms,whalejasmine/canvas-lms,Rvor/canvas-lms,dgynn/canvas-lms,sfu/canvas-lms,djbender/canvas-lms,SwinburneOnline/canvas-lms,jay3126/canvas-lms,sfu/canvas-lms,fronteerio/canvas-lms,redconfetti/canvas-lms,grahamb/canvas-lms,AndranikMarkosyan/lms,instructure/canvas-lms,HotChalk/canvas-lms,fronteerio/canvas-lms,juoni/canvas-lms,leftplusrightllc/canvas-lms,Jyaasa/canvas-lms,sdeleon28/canvas-lms,utkarshx/canvas-lms,antoniuslin/canvas-lms,roxolan/canvas-lms,venturehive/canvas-lms,skmezanul/canvas-lms,utkarshx/canvas-lms,tgroshon/canvas-lms,grahamb/canvas-lms,venturehive/canvas-lms,narigone/canvas,kyroskoh/canvas-lms,greyhwndz/canvas-lms,narigone/canvas,snehakachroo1/LSI_replica,djbender/canvas-lms,djbender/canvas-lms,dgynn/canvas-lms,greyhwndz/canvas-lms,Rvor/canvas-lms,sfu/canvas-lms,SwinburneOnline/canvas-lms,AndranikMarkosyan/lms,leftplusrightllc/canvas-lms,dgynn/canvas-lms,kyroskoh/canvas-lms,efrj/canvas-lms,whalejasmine/canvas-lms,Jyaasa/canvas-lms,juoni/canvas-lms,antoniuslin/canvas-lms,eCNAP/CANVAS,AndranikMarkosyan/lms,grahamb/canvas-lms,eCNAP/CANVAS,sdeleon28/canvas-lms,fronteerio/canvas-lms,instructure/canvas-lms,roxolan/canvas-lms,skmezanul/canvas-lms,skmezanul/canvas-lms,fronteerio/canvas-lms,snehakachroo1/LSI_replica,djbender/canvas-lms,instructure/canvas-lms,tgroshon/canvas-lms,Rvor/canvas-lms,eCNAP/CANVAS,sdeleon28/canvas-lms,efrj/canvas-lms,antoniuslin/canvas-lms,matematikk-mooc/canvas-lms,SwinburneOnline/canvas-lms,antoniuslin/canvas-lms,juoni/canvas-lms,greyhwndz/canvas-lms,sfu/canvas-lms,Jyaasa/canvas-lms,Rvor/canvas-lms,Jyaasa/canvas-lms,juoni/canvas-lms,skmezanul/canvas-lms,AndranikMarkosyan/lms,greyhwndz/canvas-lms,venturehive/canvas-lms,jay3126/canvas-lms,matematikk-mooc/canvas-lms,sfu/canvas-lms,jay3126/canvas-lms,grahamb/canvas-lms,snehakachroo1/LSI_replica,utkarshx/canvas-lms,instructure/canvas-lms,roxolan/canvas-lms,efrj/canvas-lms,jay3126/canvas-lms,leftplusrightllc/canvas-lms,instructure/canvas-lms,redconfetti/canvas-lms