Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.)
Comment | File | Size | Author |
---|---|---|---|
#1 | poll-block-info-access-762080-1.patch | 666 bytes | David_Rothstein |
Comments
Comment #1
David_Rothstein CreditAttribution: David_Rothstein commentedPatch.
Comment #2
karma.code CreditAttribution: karma.code commentedComment #3
karma.code CreditAttribution: karma.code commentedTested patch and it works with no problems.
Comment #4
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Good catch, David.