forked from friendica/friendica-addons
service_class restrict facebook_connect
This commit is contained in:
parent
0e5b132328
commit
ae70cbe9c7
BIN
facebook.tgz
BIN
facebook.tgz
Binary file not shown.
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue