# Bug OP-8002 - Error loading list on board (e.g. Status board) for users who don't have access to filtered projects

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 12.0.0 |
| Observed in versions |  |
| Sprint | 12.0.0 |
| 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

### **Environment**:

community.openproject.com

OpenProject 11.0.4

### **Steps to reproduce:**

1.  Create a board (e.g. Status board) which has a project filter (e.g. "Subproject of") and filters either for certain projects users has not access to or filters our projects user has no access to.
2.  User navigates to the board.

Example: Go to <https://community.openproject.com/projects/openproject/boards/2905> and add filter for projects other users don't have access to. Then access that board as a user without access to those (sub-)projects.

### **Actual Behavior**

Board cannot be loaded / error displayed for all columns.

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/19965/content"></div></figure>

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/19966/content"></div></figure>

### **Expected Behavior**

The board is loaded.

Similar to work packages, users should - based on their permission - see only those work packages they have access to.

### Notes:

Possible solution:

  - The board/grid contains the filters, then they are used to get the form (this    .apiV3Service.queries.form.loadWithParams) that returns the query with the filters that the user is not allowed to see out. 
  - We can compare then the board filters with the query filters
  - If there is any positive filter  (is) removed, the the entire board would become invalid \>\> Show global error message
  - If there is no such a removed filter, we issue the normal filterset (columns + filters) and provide valid subset === true parameter

Problems: filters are in different format + it doesn't feel right.  
Branch: fix/35563-hide-boards-user-is-not-allowed
