# Feature OP-7970 - Consistent behaviour in project settings according to permissions of my role

Project: OpenProject
Status: new
URL: https://community.openproject.org/work_packages/OP-7970

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Wish List |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

As an OpenProject user  
I want to only see options I'm allowed to access and edit in a project  
so that I can clearly understand what works and what doesn't and to avoid confusion.

As an OpenProject administrator  
I want users to have as limited options seemingly(\!) available as possible  
so that they can concentrate on their work.

### Expected behavior

Removing permissions for a role in the administration leads to removed visible options in the project settings. Consistent behaviour of the effects of removing pr granting permissions.   
**If this permission is removed this should happen in the project settings:**  
a. *Select project modules*: Modules is hidden  
b. *Manage versions*: At least button "close completed versions" is hidden  
c. *Select types*: Work packages types is hidden  
d. *Edit project*: Depending on what this is meant to do:  
      1) Hide project settings completely, or  
      2) Hide Project information

**This already works for:**  
\-*Create subprojects*: button is removed  
\-*Copy projects*: button is removed  
\-*Manage overview*: Can't edit overview  
\-*Manage members* (while keeping *View members*): option to edit and delete is removed

### Current behavior

Cases a., b., c.: Options in project settings are not hidden; when trying to edit [Error 403] is shown (See also <mention class="mention" data-id="35441" data-type="work_package" data-text="#35441">#35441</mention>)

Case d: If *manage versions* is ticked, module Project settings is shown nevertheless. If nothing is ticked module Project settings is not shown. 

### Conclusion

  - hide all settings options a user has no permission to edit
  - make effect of removing the *Edit projects* permission consistent (it should either remove the whole project settings module or all other permissions should be able to override it, not just *manage versions*)
