Bug ConversationMessage::getTypePermissionTypeConstraints should apply when $isOnlyType is true

There is a bug in this version
X

Xon

Guest
ConversationMessage::getTypePermissionTypeConstraints prevents non-recipients from searching for conversation messages they are not part of. This for some reason is skipped when $isOnlyType is true.

Without getTypePermissionTypeConstraints applying the recipient constraint when searching just conversations, search will be degraded for users as the number of conversations grows. That is Elasticsearch will return more and more results XF needs to filter out.

Continue reading...