# Bug OP-10633 - Include projects mistake

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.1.6 |
| Observed in versions | 12.1.0 |
| Sprint | 12.1.6 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 12.1.x |
| 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

### **Steps to reproduce**

*Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:*

1.  Login as user with "Member" or "Project Admin" role.
2.  User has access to the all projects hierarchy except project "SubProject (no access)".
3.  Go to work pacages and try use "Include project" and add subprojects for project "SubProject (no access)".
4.  No way to add it.
5.  If I as admin make and save filter with all projects where user has access - user will see tasks from all projects, but can not see this projects in the filter.

### **What is the buggy behavior?**

*Please describe the bug with as most details as possible. Example:*

  - Incorrect behavior of "Include project" if user has no access to top-level project.

### **What is the expected behavior?**

*Describe how the application should behave like. Example:*

1.  User can select all the projects that he has access to

### **Important note**

*Please note that unless you are a contributor to OpenProject, you can no longer edit this bug report after saving. You can still add new comments, but no longer add any new images or other attachments. Please make sure that all necessary information and attachments are added, and the following attributes are set:*

If admin add user to the "SubProject (no access)" the problem disappears

### **Logs**

*Are there errors in the browser console? (*[*Click here for information on how to open your browser's console*](https://webmasters.stackexchange.com/a/77337)*) For a local installation: Are there relevant logs output by* `_openproject logs_` *(packaged installation) (*[*click here for details*](https://docs.openproject.org/installation-and-operations/operation/monitoring/#show-logs)*) or in a log/production.log or /var/log/openproject/ ? Please attach error output in these log files if applicable*

How system admin see all projects hierarchy:

<figure class="image op-uc-figure" style="width:50%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/34476/content"></div></figure>

How user see it:

<figure class="image op-uc-figure" style="width:50%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/34477/content"></div></figure>

User can not include tasks from SubProject 1 /1.2/2/2.1:

<figure class="image op-uc-figure" style="width:50%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/34478/content"></div></figure>

If user open saved filter with tasks from this SubProjects. User can see tasks from this projects:

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

Value of "Include projects" change from time to time. If it is 7 user can see only 3 projects:

<figure class="image op-uc-figure" style="width:50%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/34480/content"></div></figure>

### **Screenshots and other files**

### **Environment information**

*Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs*

**OpenProject installation type**

- [ ]    Hosted cloud edition
- [ ]    Packaged installation
    - What distribution?
- [ ]    Docker All-in-one container
- [x]    Docker-compose installation
- [ ]    Other (please specify)

**OpenProject version**

*If you're not running on the cloud edition, please specify the version of OpenProject you're running. Example: v12.1.5*

**Browser**

- [x]    Chrome
- [ ]    Firefox
- [ ]    Safari
- [ ]    Mobile Safari
- [x]    Edge

**Language**

Eng , Ru
