# Bug OP-3342 - User with multiple roles granting :view_work_packages sees too few work packages

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-3342

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 6.1.3 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

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

## Description

**Reproduction**

  - Have two roles with the :view\_work\_packages permission
  - In a project, grant both roles to a user
  - Go to the work packages page

**Actual**

  - Only half the work packages are displayed. Depending on the pagination, this can mean displaying only 50 instead of the configured 100 work packages. 
  - The total count of work packages is correct

**Expected**

  - All work packages (only limited by the per page configuration) are displayed.

**Note**

  - The number of displayed work packages is further reduced if the user has even more roles with the view work packages permission in the project.
