# Bug OP-14555 - Link on top of the storage should be removed if the read_files permission is missing when it is a automatically managed project folder.

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 14.0.0 |
| Observed in versions | 13.3.0 |
| Sprint | 14.0.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 13.3.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | Yes |
| 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 a the project.
5.  Access the **Files** tab of a work package

### 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.

### Screenshot

<img class="op-uc-image op-uc-image_inline" style="width:1800px;" src="/api/v3/attachments/95794/content">
