# Bug OP-11807 - Users who are not allowed to see hourly rates see planned and booked labor costs in budgets

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 14.1.0 |
| Observed in versions | 12.4.0 |
| Sprint | 14.1.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 12.4.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 | Jens Ulferts |
| 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.  Create a budget in a project, add planned labor costs and book hours.
2.  Check the budget as a user who is allowed to see budgets but who is not allowed to view/edit own/all hourly rates or cost rates and has the following settings:

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

### What is the buggy behavior?

  - Planned labor costs are displayed on the budget overview page. (see screenshot, Budget <mention class="mention" data-id="35" data-type="work_package" data-text="#35">#35</mention>)
  - Booked labor costs are displayed on the budget detail page.

### What is the expected behavior?

  - Planned and booked labor costs should amount to 0 EUR as this is the case for booked unit costs (e.g. screenshot, Budgets <mention class="mention" data-id="11" data-type="work_package" data-text="#11">#11</mention> and <mention class="mention" data-id="8" data-type="work_package" data-text="#8">#8</mention>).

### **Logs**

N/A

### Screenshots and other files

##### Budget overview:

<img class="op-uc-image op-uc-image_inline" style="width:1433px;" src="/api/v3/attachments/48806/content">

##### Budget details:

<img class="op-uc-image op-uc-image_inline" style="width:1774px;" src="/api/v3/attachments/48807/content">

### Environment information

**OpenProject installation type**

- [ ] Hosted cloud edition
- [x] Packaged installation: centos-linux-release-8.5-1.2111.el8.noarch
- [ ] Docker All-in-one container
- [ ] Docker-compose installation
- [ ] Other (please specify)

**OpenProject version**

v12.4.2

**Browser**

- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [x] Other (please specify): Edge

**Language**

German, English
