Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic link list does not filter non-published content #147

Open
Aporie opened this issue Feb 22, 2024 · 0 comments
Open

Dynamic link list does not filter non-published content #147

Aporie opened this issue Feb 22, 2024 · 0 comments

Comments

@Aporie
Copy link

Aporie commented Feb 22, 2024

Hello,

When using a dynamic link list, sorting the content on created date, for example, if there are draft content, this produces empty columns for visitors.

As a logged-in user, I'm able to see my draft:
image

But as anonymous, there is an empty column:
image

I think we might need to add a condition on the content status in web/modules/contrib/oe_link_lists/modules/oe_link_lists_internal_source/src/Plugin/LinkSource/InternalLinkSource.php:355

$entities = $storage->loadMultiple($query->accessCheck(TRUE)->condition('status', TRUE)->execute());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant