In Drupal7, in the admin, if you go to Blocks, configure a selected block, and then Visibility Settings and then Roles, you should be able to restrict per Role. However, this doesn't work for me (at all). Any/all changes I make here take no effect.

Why? Anyone else experienced this? I would PAY money for this to work, as it seems like a great feature, but I can't get it to work.

(Goal: I want the block named "content" to only appear for the "authenticated user" role.)

Comments

amandalaine’s picture

So, it works for blocks you add, but NOT for blocks which are default.

BUT I need to change a default block (meaning, a block which came with the installation).

Wappie08’s picture

Actually I just experienced the same behavior: if I set any block visibility settings for the main menu they are not honored.. this only happens to the main menu.

I could not reproduce this bug on a clean install so I tried another theme and voila, it worked again.. So a theme caused the trouble for me, I'll try to post more details if I figure out a solution in the theme!

Greets

DaleIT’s picture

I'm experiencing the same issue. Using Drupal 7.7 - everything updated as of today. Did anyone find a solution?

marshallexcavating’s picture

I'm experiencing the same issue/bug with the Drupal core "User login" block . Using Drupal 7.9, Bartik 7.9 theme . Any solution?

Steel Rat’s picture

I'm getting the same thing on a fresh D7 (7.12) install.

So far I've only tried the block visibility for a custom block I created. I have a role called Moderators which have advanced permissions, so I chose that role for the block visibility, as well as Administrator.

I put the block in a panel region and the block was visible to anonymous users (not logged in). So I changed the Panel Region visibility to also only allow visibility to those two roles. That still didn't restrict the visibility. So I added a permission visibility for the panel region that only the admin and moderators would have, and that did what it was supposed to do.

Clearly role visibility for blocks is not working as it should, and probably not for panels either.

jakerogers’s picture

I know this is an old post and I have recently experienced the same problem. The clickable text (link) showed for other user roles, as designed, however when they clicked on link nothing happened...it worked fine for Administrator. I logged in one of the lower level roles and checked the link path and it was different than that observed for the Admin. Changed the path and it now works for all designated roles. The Admin node path had some "overlay" text that was causing the link to NOT work for users, other than the Admin.
Hope this helps someone else.

Jake

ciofringeanuradu’s picture

One thing to remember - if your block contain links make sure the user role have the right permissions on this links otherwise the block won't appear.