mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-24 13:43:12 +02:00
fix: invalid db query for guests
This commit is contained in:
parent
2e9e6ef771
commit
33987d5c5b
@ -380,8 +380,8 @@ func (s *MattermostAuthLayer) SearchUsersByTeam(teamID string, searchQuery strin
|
||||
boardsIDs = append(boardsIDs, board.ID)
|
||||
}
|
||||
query = query.
|
||||
Join(s.tablePrefix + "board_members as bm ON bm.UserID = u.ID").
|
||||
Where(sq.Eq{"bm.BoardId": boardsIDs})
|
||||
Join(s.tablePrefix + "board_members as bm ON bm.user_id = u.ID").
|
||||
Where(sq.Eq{"bm.board_id": boardsIDs})
|
||||
}
|
||||
|
||||
rows, err := query.Query()
|
||||
|
Loading…
Reference in New Issue
Block a user