How to show role-limited block in right column/sidebar (D8)

5 posts / 0 new
Last post
How to show role-limited block in right column/sidebar (D8)

Dear support,

I have created a site using the new demo template (test-beams-demo-template). I am trying out the new Landing page Home that comes with it to see if it suits my needs. I have a block that I would like to display in the right column only for users with a particular role. I assume, that for this landing page, you should put blocks for the right column in the 'Column Right' of the corresponding section, but the problem with this option is that the restrictions on roles are not respected, so the block is displayed even if the logged in user does not have the correct role to see it. And if I put the block in right sidebar regions via the Block layout page, they don't show up when on this page (they do on other pages). What solution do you propose in this situation?

Kind regards,

Katarina Sigerud

Bug in the Landing Page

Hello Katarina,

We can confirm that this is a bug in the Landing Page. A fix will be deployed in one of the next versions.

For now we recommend not displaying any sensitive Information on the Landing Pages.

Thank you for reporting!

Kind regards,

Patrick Gröger

No Bug

Hello Katarina,

After a further investigation on that case we saw that it actually isn't a bug. You just have to clear the caches on your Website and then it should work as it is intented.

If there are any further problems, please let us know.

Kind regards,

Patrick Gröger

Still visible

Dear Patrick,

Thank you for looking into this. After doing as you suggested and clearing the cache of the website test-beams-demo-template and the cache of my browser, the block is still visible even when I am not logged in. I have added some screenshots to give more details.

Kind regards,

Katarina

Clearing cache, correct place?

Configuration of block:

Placement of block on landing page:

Block visible when not signed in:

Block Problem

Dear Katarina,

Now we see the problem. We're investigating it and we'll let you know when we have a solution.

Kind regards,

Patrick

You are here