It does it in hook_block_view() which make sense, but it does it in hook_block_info() also and should not - there is never a situation where we want the mere existence of the poll block to be hidden :)

(Given that the permission which is checked here is 'access content' its not likely to make much of a practical difference, but it still should be fixed.)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

David_Rothstein’s picture

Status: Active » Needs review
FileSize
666 bytes

Patch.

karma.code’s picture

Assigned: Unassigned » karma.code
karma.code’s picture

Status: Needs review » Reviewed & tested by the community

Tested patch and it works with no problems.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Good catch, David.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.