Problem/Motivation
Currently the slots_content_block correctly checks if the entity detected by slots is actually accessible in the blocks access method. But buildSlotContents in SlotsService is not taking this into account when counting the items.
Steps to reproduce
- Create a slot and add 2 different pieces of content, for instance from 2 different block types
- For you test user make sure that the first one is not viewable via permissions
- Limit your slot to a cardinality of 1
- For the given user, the slot is now empty, even though there is a suitable match
Proposed resolution
- Don't add content to to the build if not accassible
Issue fork slots-3581243
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
Comment #3
harlor commentedComment #5
hydra commented