The 'access tweetbutton' permissions does not work.

When you remove this permission the button is always displayed.

Files: 

Comments

I have made a patch for the function tweetbutton_block_view().

Change

<?php
/**
* Implementation of hook_block_configure
*/
function tweetbutton_block_view($delta = '') {
  if (
$delta == 'tweetbutton_tweet') {
   
$block['subject'] = t('Tweetbutton tweet');
   
$block['content'] = theme('tweetbutton_tweet_display');
    return
$block;
  }
  elseif (
$delta == 'tweetbutton_follow') {
   
$block['subject'] = t('Tweetbutton follow');
   
$block['content'] = theme('tweetbutton_follow_display');
    return
$block;
  }
}
?>

to

<?php
/**
* Implementation of hook_block_configure
*/
function tweetbutton_block_view($delta = '') {
  if (
$delta == 'tweetbutton_tweet' && user_access('access tweetbutton')) {
   
$block['subject'] = t('Tweetbutton tweet');
   
$block['content'] = theme('tweetbutton_tweet_display');
    return
$block;
  }
  elseif (
$delta == 'tweetbutton_follow' && user_access('access tweetbutton')) {
   
$block['subject'] = t('Tweetbutton follow');
   
$block['content'] = theme('tweetbutton_follow_display');
    return
$block;
  }
}
?>

Thanks for the patch. I couldn't get the it to apply when I downloaded it via curl. But, when I right-clicked and saved and then applied it via git then it worked.