Problem/Motivation

When using the "Layout Builder Advanced Permissions Entity" submodule, it seems the action is not properly check when trying to see if a permission applies. This causes "edit" permissions to apply to the add action.

Steps to reproduce

Enable the permission "Add One column layouts on Page content entities"
Disable the permission "Edit One column layouts on Page content entities"

You would expect users to be able to add One column sections, but they can't.

Proposed resolution

Properly verify the action when checking if a permission plugin applies.

Remaining tasks

User interface changes

-

API changes

-

Data model changes

-

CommentFileSizeAuthor
#2 3224899-2.patch1.01 KBseanB
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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

seanB created an issue. See original summary.

seanB’s picture

FileSize
1.01 KB

Patch is attached.

seanB’s picture

Status: Active » Needs review
ricovandevin’s picture

Status: Needs review » Reviewed & tested by the community

We are using this patch in a project for 2 years already. Let's assume the fix works. :-)

  • ricovandevin committed 4008cb61 on 2.0.x authored by seanB
    Issue #3224899: Action not properly checked for EntityPermission::...
ricovandevin’s picture

Status: Reviewed & tested by the community » Fixed

  • ricovandevin committed 4008cb61 on 2.x authored by seanB
    Issue #3224899: Action not properly checked for EntityPermission::...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.