# Bug OP-15737 - User account without any projects receives a Error 403 not authorized error when accessing the Activities page

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 14.5.0 |
| Observed in versions |  |
| Sprint | 14.5.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| 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 | Oliver Günther |
| 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.  Login as a user that has no projects assigned to it

2.  Go to the waffle icon and select Activity

### What is the buggy behavior?

*Please describe the bug in as much detail as possible. Example:*

  - When the Activity page is accessed an "**\[Error 403\] You are not authorized to access this page**" alert appears.

  - If the alert is dismissed and the page is reloaded the error alert reappears.

  - If the user is added to a project (even one devoid of work packages) the error alert does not appear. If the user is removed from the project again, the error alert appears again.

  - Below is a screen capture of the error alert.

### What is the expected behavior?

*Describe how the application should behave like. Example:*

1.  Show a message that states that there are no visible projects for the user
    
    1.  Saying that the user isn't member of any project would be incorrect as there might be public projects the user is no member in. In such a case, the user wouldn't need to have a membership to have activities displayed 

### Screenshots and other files

*If you have screenshots of the application's bug behavior or other relevant files, please drag them into this place or attach them using the "Files" section.*

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/186304/content"></div></figure>

### Environment information

*Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs*

**OpenProject installation type**

- [x] Hosted cloud edition

- [ ] Packaged installation
  
    - What distribution?

- [ ] Docker All-in-one container

- [ ] Docker-compose installation

- [ ] Other (please specify)

**OpenProject version**

*If you're not running on the cloud edition, please specify the version of OpenProject you're running. Example: v12.1.5*

**Browser**

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

**Language**

*Please specify the browser language and the language of the OpenProject user for which the bug occurred.*
