I have a group
index. A group has two privacy types, public and private. A private group is associated with an access code. In the search result a private group should only be included if user has the access code associated to it. Previously private groups did not show in the search result, so I had one simple query !privacy_type:private
.
But now I have to include the private groups if user has the access code for that group (User can have multiple access codes and we have to include groups with those access codes). How to use conditional filter like this?