# Bug OP-18795 - Hourly rates can be edited for non-members

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Costs and budgets |
| Target versions | 17.1.0 |
| Observed in versions | 17.0.0 |
| Sprint | 17.1.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.0.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 | 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.  Have a project with the _Time and Costs_ module enabled and be a user that has the _Edit Hourly Rates_ permission in this project
    
2.  Go to the _Members_ list in the project, find an entry that links to the current rate of any project member  
    <img class="image_resized op-uc-image op-uc-image_inline" style="width:728px;" src="/api/v3/attachments/918595/content">
    
3.  See in the URL that you have a URL in the browser `/projects/demo-project/hourly_rates/4/edit`
    
4.  Switch the id number to any user id
    

### What is the buggy behavior?

*   Regardless of the ID you enter, you see a form to add an hourly rate for the user in the project. Especially when this is user that should not even be visible to our current user (i.e. a user that has only _Manage hourly rates_ in that one project and no access to any other project)&nbsp;
    

### What is the expected behavior?

1.  When the user is not a project member, it should show a 404 error and not show the form
