Fixes LatestRevisionCheck access logic

Created on 2 November 2023, about 1 year ago
Updated 6 November 2023, about 1 year ago

Problem/Motivation

Access to the Latest tab for grouped content is returning forbidden for non-node entity types, even when correct group permissions have been assigned.

I've got some custom group relationship handler plugins which don't conform to the assumed plugin id in LatestRevisionCheck.php
e.g.

$plugin_id = 'group_' . $entity->getEntityTypeId() . ':' . $entity->bundle();

This is not the correct ID for our scenario (the plugin we have does not support bundles)

Proposed resolution

See attached patch.

🐛 Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

🇦🇺Australia thtas

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

Comments & Activities

Production build 0.71.5 2024