buddyboss-platform icon indicating copy to clipboard operation
buddyboss-platform copied to clipboard

BB Network Search Bug for group/forum membership

Open nickchomey opened this issue 2 years ago • 0 comments

Jira Issue:

https://support.buddyboss.com/support/tickets/182270

Currently, a BB Network Search will return results for forums that are in hidden groups that the user is not a member of. The problem is a single character ! which inverts the check to see if the BB Network Search setting for Groups is enabled (as would be typical). This means that the query checks for IN (0) which returns all results, rather than populating the IN with all of the groups that a user is a member of.

To test, simply create a hidden group with a forum and do a search with a non-admin user who is not a member of that group. The group wont show up in the search results but the forum will.

nickchomey avatar Jul 03 '22 21:07 nickchomey