access() on null when permission is not properly configured.

Created on 2 November 2023, about 1 year ago
Updated 15 July 2024, 4 months ago

Problem/Motivation

On out projet, during D10 upgrade we encountered an error about checking access on a null in "GroupContentMenuForm.php". The error was showing after clicking edit the group menu.

It is not a standard use case, but this situation could happen.

Steps to reproduce

Group permission were misconfigured.

Proposed resolution

Check if $operation['url'] exists before checking access() on it. This check is done at item link level on the menu.

Remaining tasks

Review the change.

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024