mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
fix: omit users for 'Everyone' group in response (#5937)
This commit is contained in:
@ -4051,24 +4051,6 @@ func (q *fakeQuerier) GetGroupsByOrganizationID(_ context.Context, organizationI
|
||||
return groups, nil
|
||||
}
|
||||
|
||||
func (q *fakeQuerier) GetAllOrganizationMembers(_ context.Context, organizationID uuid.UUID) ([]database.User, error) {
|
||||
q.mutex.RLock()
|
||||
defer q.mutex.RUnlock()
|
||||
|
||||
var users []database.User
|
||||
for _, member := range q.organizationMembers {
|
||||
if member.OrganizationID == organizationID {
|
||||
for _, user := range q.users {
|
||||
if user.ID == member.UserID {
|
||||
users = append(users, user)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return users, nil
|
||||
}
|
||||
|
||||
func (q *fakeQuerier) DeleteGroupByID(_ context.Context, id uuid.UUID) error {
|
||||
q.mutex.Lock()
|
||||
defer q.mutex.Unlock()
|
||||
|
Reference in New Issue
Block a user