# Bug OP-18349 - Roles selectable as "Role given to a non-admin user who creates a project" that lack essential permissions

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Administration / Roles and permissions, Modules and project features / Project creation |
| Target versions | 17.5.0 |
| Observed in versions | 17.2.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.2.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 | Klaus Zanders |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Go to the administration -\> "projects" -\> "new projects"

### What is the buggy behavior?

The dropdown for "Role given to a non-admin user who creates a project" shows users lacking essential permissions for a user having created the project. E.g. the seeded role "Reader" is listed.

If the project is created with such a role, subsequent steps cannot be taken as the permissions are lacking.

### What is the expected behavior?

1.  Only roles having at least the following permissions should be options in the dropdown:
    
    1.  Edit project attributes - for filling out the PIR
    
    2.  Manage members - to add additional users

2.  It should no longer be possible to select a blank value. Currently, this will lead to the first (by position) role to be selected instead.

3.  Add a caption explaining the need for the permissions

4.  Ideally:
    
    1.  Show a notification if the currently selected role does not have the necessary permissions
    
    2.  Prevent or notify users from removing permissions from the selected role in the role's administration.

#### Out of scope

Migrating existing instances to safe roles.
