# Bug OP-14498 - Project folder is shown in the main menu based on the wrong permission for automatically managed project folders

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 13.4.0 |
| Observed in versions | 13.3.0 |
| Sprint | 13.4.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 13.3.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 | OP Dev Titan Team |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  As admin create a file storage integration with automatically managed folders enabled.
2.  Enable that file storage on a project.
3.  Login as a user with permissions to `view_file_links` but not `read_files` in a project.
4.  Access the project.

### What is the buggy behavior?

  - The link to the project folder is shown in the main menu.

### What is the expected behavior?

1.  In case of having automatically managed project folders enabled on a project the link to the project folder should only show when the user has additionally to the `view_file_links` also the `read_files` permissions.
2.  For projects having the file storage enabled, but no automatically managed project folders enabled, the link to the project folder (case of manually selected project folder) or file storage root (case of inactive project folder) shall be shown if the permission `view_file_links` is enabled.

**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
- [ ] Other (please specify)
