# Bug FPCV-34 - It is possible to assign disabled and/or admin only project attributes given only edit permission

Project: Feature Project - Calculated value
Status: closed
URL: https://community.openproject.org/work_packages/FPCV-34

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Project attributes |
| Target versions | 16.3.2 |
| Observed in versions | 16.2.0 |
| Bug found in version (deprecated) | 16.2.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Attila Dombi |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Login as admin
    
    1.  Create custom fields
        
        1.  Create project attribute &quot;a&quot; of any type
            
        2.  Create project attribute &quot;b&quot; of type int
            
        3.  Create project attribute &quot;c&quot; of type int enabled only for admin
            
    2.  Create a project
        
    3.  Enable only attribute &quot;a&quot; for the project (otherwise attributes are not shown on overviews page)
        
    4.  Create a non admin user
        
    5.  Add user with role &quot;member&quot; to the project
        
    6.  Allow &quot;View project attributes&quot; and &quot;Edit project attributes&quot;, but disallow &quot;Select project attributes&quot; for role &quot;member&quot;
        
2.  Login as created user
    
3.  Go to created project overview page
    
4.  Only attribute &quot;a&quot; should be visible
    
5.  Open attributes editor
    
6.  Change id in name attribute of input field from id of custom field &quot;a&quot; to id of custom field &quot;b&quot;
    
7.  Set value
    
8.  Save
    
9.  Repeat using id of custom field &quot;c&quot;
    

### What is the buggy behaviour?

*   Custom field &quot;b&quot; gets enabled for the project and assigned specified value
    
*   Custom field &quot;c&quot; gets enabled for the project (but visible only to admin) and assigned specified value
    

### What is the expected behaviour?

1.  It should not be possible to enable project attributes for the project by assigning their values (especially without such permission)
    
2.  It should be possible for non admin user (having &quot;Edit project attributes&quot; permission) to assign only values of non admin fields enabled for current project
    
3.  It should be possible for admin user to assign only values of fields enabled for current project
    

### Environment information

**OpenProject version**

_v16.2_
