diff --git a/facebook.tgz b/facebook.tgz index cec2cec87..233e4eae7 100644 Binary files a/facebook.tgz and b/facebook.tgz differ diff --git a/facebook/facebook.php b/facebook/facebook.php index 6ff2a2ef0..11c87a323 100644 --- a/facebook/facebook.php +++ b/facebook/facebook.php @@ -509,6 +509,13 @@ function facebook_content(&$a) { return ''; } + + if(! service_class_allows(local_user(),'facebook_connect')) { + notice( t('Permission denied.') . EOL); + return upgrade_bool_message(); + } + + if($a->argc > 1 && $a->argv[1] === 'remove') { del_pconfig(local_user(),'facebook','post'); info( t('Facebook disabled') . EOL);