RSS Feed/News ConversationMessage::getTypePermissionTypeConstraints should apply when $isOnlyType is true

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
26,181
Points
823

Reputation:

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...
 
Status
Not open for further replies.
Top