# Bug OP-11009 - Option "Create new" shown for related work package tables when permission to create WP is missing

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

## Open points

_No work packages_

## Details

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

1.  Sign in as a user without the permission &quot;Add work packages&quot; but with the permission &quot;Manage work package relations&quot;.
2.  Navigate to a work package that has a related work package table added (through form configuration of type, e.g. type &quot;related&quot; work packages).
3.  Click on &quot;+ Create new&quot; link below table.

### What is the buggy behavior?

*   The link &quot;+ Create new&quot; is displayed even though user does not have role with permission to create work packages.
    *   When clicking the link nothing happens.

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/37906/content">

 <img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/37907/content">

### What is the expected behavior?

1.  Link &quot;+ Create new&quot; should not be displayed when user does not have the permission to create a work package.

### **Logs**

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/37904/content">

### Environment information

**OpenProject installation type**

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

**OpenProject version**

12.2.1

**Browser**

*   [x] Chrome
*   [ ] Firefox
*   [ ] Safari
*   [ ] Mobile Safari
*   [ ] Other (please specify)
