Problem/Motivation

You can edit slots in the layout, there is no way of restricting the user from that.

Steps to reproduce

Add a slot to the layout, go to a user that can access the layout, View slots identifiers and not administer slots.

Proposed resolution

Use the access on edit to restrict the user from editing.

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork slots-3568780

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

gashunk created an issue. See original summary.

gashunk’s picture

Status: Active » Needs review

Add a check to the link that gets created when the slot is placed in the layout builder. Currently I check on access('edit') which comes from the permission "administer slots".

harlor’s picture

Code looks good

hydra’s picture

Status: Needs review » Fixed

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.

Status: Fixed » Closed (fixed)

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