I thought, I saw an answer in past, but now I can't find it.

Question: Is there a way to show some blocks only to priviledged users (roles)?

Comments

driki_’s picture

I would create php block with an 'if' on $user->role in his code.

VTY
Drico

qube’s picture

Thank you.

The time has come to jump into Drupal API docs :-)

Dublin Drupaller’s picture

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

teshager’s picture

you can use taxonomy_access to limit roles to node. You can then have the blocks displayed using the flexiblock module.

Just a thought.

/c4

zach harkey’s picture

Having to hand code this is a pain. Is there any reason why we shouldn't be able to restrict visibility to certain roles on a block's configuration page? In the exact same way that you can "restrict block to specific content types" (which I have yet to find a use for).

-zach
------------------------
harkey design

: z