Problem/Motivation

Because we don't have the access check for the merge content link & publish, contrib https://git.drupalcode.org/sandbox/lucashedding-3623720/-/blob/1.0.x/src... is needed.

This was caught and fixed with the aid of an LLM.

Steps to reproduce

Proposed resolution

Add an access check, similar to other links.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3624074

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

heddn created an issue. See original summary.

heddn’s picture

Title: Add workspace "merge content" link access check » Add workspace "merge content" & "publish" link access check
Issue summary: View changes

heddn’s picture

Status: Active » Needs review
smustgrave’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Needs Review Queue Initiative

Ran the test-only job

Failed asserting that null is an instance of interface Drupal\Core\Access\AccessResultInterface.
/var/www/html/core/modules/workspaces_ui/tests/src/Kernel/WorkspaceListBuilderTest.php:107
/var/www/html/core/modules/workspaces_ui/tests/src/Kernel/WorkspaceListBuilderTest.php:70

Looking at the change itself addition of #access' fully think makes sense.

LGTM!

  • catch committed ecb6d046 on main
    task: #3624074 Add workspace "merge content"...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to main and cherry-picked back through to 11.5.x, thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • catch committed 0eeb3a30 on 11.5.x
    task: #3624074 Add workspace "merge content"...

  • catch committed c43caa50 on 11.x
    task: #3624074 Add workspace "merge content"...

  • catch committed 80ceee64 on 12.0.x
    task: #3624074 Add workspace "merge content"...