# Bug COMMS-1144 - Search matches content of internal comments even without authorization

Project: Stream Communicator
Status: closed
URL: https://community.openproject.org/work_packages/COMMS-1144

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Search |
| Target versions | 18.0.0 |
| Observed in versions | 17.9.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Bruno Pagno |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Open [this search query](https://community.openproject.org/search?q=hykel&scope=all&filter=work_packages&query_props=%7B%22c%22%3A%5B%22id%22%2C%22project%22%2C%22subject%22%2C%22type%22%2C%22status%22%2C%22updatedAt%22%5D%2C%22hi%22%3Afalse%2C%22g%22%3A%22%22%2C%22is%22%3Atrue%2C%22tv%22%3Afalse%2C%22hla%22%3A%5B%22status%22%2C%22priority%22%2C%22dueDate%22%5D%2C%22t%22%3A%22updatedAt%3Adesc%22%2C%22f%22%3A%5B%7B%22n%22%3A%22search%22%2C%22o%22%3A%22**%22%2C%22v%22%3A%5B%22hykel%22%5D%7D%2C%7B%22n%22%3A%22subject%22%2C%22o%22%3A%22%7E%22%2C%22v%22%3A%5B%22500er%22%5D%7D%5D%2C%22ts%22%3A%22PT0S%22%2C%22pp%22%3A50%2C%22pa%22%3A1%7D) while logged out of Community

### What is the buggy behavior?

  - The search matches <mention class="mention" data-id="80076" data-type="work_package" data-text="#OP-20242" data-display-id="OP-20242">\#OP-20242</mention> , even though the only mention of "hykel" is in an internal comment

### What is the expected behavior?

1.  Do not match such package

### 

### Screenshots and other files

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/925302/content">

### Environment information

**OpenProject installation type**

  - Hosted cloud edition

**OpenProject version**

17.9

**Browser**

- [ ] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Operating System**

- [ ] Windows
- [ ] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [ ] Linux (please specify distro)
- [ ] Chrome OS
- [ ] Other (please specify)

**Language**

*Please specify the browser language and the language of the OpenProject user for which the bug occurred.*
