ECA Render: render view action doesn't check the access which leads to an exception

Issue information

From user: jurgenhaas

Contribution record

Fork management

Problem/Motivation

The render view action plugin doesn't verify view access which then leads to an exception during rendering because $build = views_embed_view(...$args); return NULL and that then causes a type error with BubbleableMetadata::createFromRenderArray($build); as parameter 1 needs to be an array and NULL is given.

Proposed resolution

Implement an access control for that action plugin.

Edited by drupalbot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information