Problem/Motivation
Layout Builder uses Contextual Links to let the the user configure, move or remove blocks. For being able to use them, the "access contextual links" permission is required. Without having that permission, the Layout Builder usability is very limited, because then you're able to add blocks, but cannot configure or remove them anymore - due to missing links in the UI.
I have a use case where contextual links are not desired, especially on node view pages. The reason behind that is, that contextual links might introduce problems due to its "injective" behavior. The current situation - without involving additional development - now forces me to decide:
- Either Layout Builder will be used which means contextual links anywhere else, or
- not having contextual links and therefore not having a usable Layout Builder.
Proposed resolution
Users being allowed to use the Layout Builder should be able to use it in its full manner, regardless of "access contextual links".
Two possible ways maybe:
- Just ignore the contextual links permission or
- Ignore the contextual links permission and introduce Layout Builder's own permission regards the usage of contextual links within Layout Builder.
Remaining tasks
This should be discussed I guess, as there might be other cases around that. Some also might see a security risk here?
User interface changes
I guess none for almost any user.
API changes
I guess the Contextual Links module takes care regards permissions on its own, thus the solution might be a little bit more complex...
Comments
Comment #2
tim.plunkett