Skip to content

Commit

Permalink
fixing concept/mapping search
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Feb 18, 2021
1 parent 09652fc commit fda4532
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core/common/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,6 @@ def __search_results(self): # pylint: disable=too-many-branches
results.query(Q('match', public_can_view=False) & Q('match', user=self.request.user.username))
elif self.is_concept_container_document_model() and self.request.user.is_authenticated:
results.query(Q('match', public_can_view=False) & Q('match', created_by=self.request.user.username))
else:
results = results.query('match', public_can_view=True)

if self.is_owner_document_model():
kwargs_filters = self.kwargs.copy()
Expand Down

0 comments on commit fda4532

Please sign in to comment.