]> git.mxchange.org Git - friendica-addons.git/commitdiff
service_class restrict facebook_connect
authorfriendica <info@friendica.com>
Mon, 25 Jun 2012 10:24:02 +0000 (03:24 -0700)
committerfriendica <info@friendica.com>
Mon, 25 Jun 2012 10:24:02 +0000 (03:24 -0700)
facebook.tgz
facebook/facebook.php

index cec2cec874253e93aeba9c2cee9148a0e1cbcaa8..233e4eae74369688b78124fda720b0d760308429 100644 (file)
Binary files a/facebook.tgz and b/facebook.tgz differ
index 6ff2a2ef020c8ee9de87e73433bcdb34e5e2bd4b..11c87a32330d36a34a91a767aeb1a2d441463866 100644 (file)
@@ -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);