Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
user system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Mar 2007 at 16:26 UTC
Updated:
21 May 2011 at 08:28 UTC
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
Comment #1
robhamm commentedThe 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.
Comment #2
stevenpatzfeatures go in cvs
Comment #3
robhamm commentedAh... Thank you for correcting me. I now know better.
:-)
Comment #4
stevenpatzPlease don't change the title. It makes tracking the issue difficult to follow.
Comment #5
mdupontInvalid 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.