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

Created on 2 November 2023, 8 months ago
Updated 14 March 2024, 3 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

RTBC

Version

2.0

Component

Code

Created by

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

Comments & Activities

Production build 0.69.0 2024