Commit 757a3ca1 authored by Dries's avatar Dries

- Patch #762080 by David_Rothstein: poll block should not do an access check in hook_block_info().

parent 90351aa7
......@@ -139,10 +139,8 @@ function _poll_menu_access($node, $perm, $inspect_allowvotes) {
* Implements hook_block_info().
*/
function poll_block_info() {
if (user_access('access content')) {
$blocks['recent']['info'] = t('Most recent poll');
return $blocks;
}
$blocks['recent']['info'] = t('Most recent poll');
return $blocks;
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment