# Bug OP-18190 - Error 403 on project dashboard access with news widget

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module | Modules and project features / Project overview, Modules and project features / Project overview / Dashboard, Modules and project features / Project overview / Widget |
| Target versions | 16.6.1 |
| Observed in versions | 16.6.0 |
| Sprint | 16.6.1 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 16.6.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 | Christophe Bliard |
| 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 project

2.  Enable the "News" module (Project Settings \> Modules)

3.  In project overview page, go to the dashboard tab and add the "News" widget

4.  Disable the "News" module (Project Settings \> Modules)

5.  Navigate to the overview page, and then to dashboard tab

### What is the buggy behavior?

  - The dashboard is briefly displayed and then changes to display a 403 error

  - The url ends with "/widgets/news"

### What is the expected behavior?

1.  No error

2.  ~~If the "News" module is disabled, the "News" widget should be hidden, as it is the case in the overview tab of the overview page~~. Let's do the same as in 16.5 and display "Nothing new to report". That's what is displayed in "My page" page with the news widget when all projects have the "News" module disabled.

3.  In 16.5, the widget was displaying "Nothing new to report" when the module is disabled
    
    1.  Note: It's not possible to remove the "view\_news" permission from a role because this permission is not public.

### Screenshots and other files

The error in 16.6.0

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

The same widget in 16.5 when module is disabled:

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

### Environment information

**OpenProject version**

16.6.0
