The opposite is easy to do--to hide a block from authenticated users while showing to other roles. Since all registered users are granted the authenticated user role, though, there doesn't seem to be a way through the UI to SHOW a block (say, an advertisement) to regular authenticated users while hiding from another (say, paid users).

Comments

robhamm’s picture

Title: checkbox to SHOW block to authenticated while HIDING from higher role? » There is a way, but it is an inelegant workaround

The one way I've found to do this is to give only paid users a role that lets them choose their own theme, and have them switch to a theme for which I've disabled those blocks. It is inelegant, but it works for now.

stevenpatz’s picture

Title: There is a way, but it is an inelegant workaround » checkbox to SHOW block to authenticated while HIDING from higher role?
Version: 5.1 » 6.x-dev

features go in cvs

robhamm’s picture

Title: checkbox to SHOW block to authenticated while HIDING from higher role? » Thanks

Ah... Thank you for correcting me. I now know better.
:-)

stevenpatz’s picture

Title: Thanks » checkbox to SHOW block to authenticated while HIDING from higher role?

Please don't change the title. It makes tracking the issue difficult to follow.

mdupont’s picture

Status: Active » Closed (fixed)

Invalid for me, Authenticated user is a special role, and nothing prevents creating another role to assign it only to regular users. Moreover, since at least D6, in the block configuration one can enter PHP code to trigger block display. Closing this old issue.