honour block public setting - especially for standalones

This commit is contained in:
friendica
2015-02-03 15:16:03 -08:00
parent df632c4232
commit 36b756e4cd
3 changed files with 24 additions and 1 deletions

View File

@@ -12,6 +12,12 @@ function ratingsearch_init(&$a) {
json_return_and_die($ret);
}
if((get_config('system','block_public')) && (! local_channel()) && (! remote_channel())) {
$ret['message'] = 'permission denied';
json_return_and_die($ret);
}
if(argc() > 1)
$hash = argv(1);