# Bug COMMS-297 - Exposing restricted comments when polling

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 16.0.0 |
| Observed in versions | 15.5.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 15.5.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Bruno Pagno |
| 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.  Login as a user with permissions to add restricted visibility comments
    
2.  On another browser login as a user without permissions to view restricted visibility comments
    
3.  Go with both users to the same work package and visualize the activity tab
    
4.  As the user with permissions to add restricted comments, add a comment
    
5.  Observe that after the polling time the comment will show up on the activity tab of the user without permission to view restricted comments
    

### What is the buggy behavior?

*   Leaking restricted comments
    

### What is the expected behavior?

1.  When polling for new activities, apply the same restriction rules
    

###   

### Screenshots and other files

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

###
