mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 11:03:48 +00:00
service_class restrict facebook_connect
This commit is contained in:
parent
0e5b132328
commit
ae70cbe9c7
2 changed files with 7 additions and 0 deletions
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