From 36b756e4cde4f45993a1941eb6b8a71bb348c6e4 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 3 Feb 2015 15:16:03 -0800 Subject: honour block public setting - especially for standalones --- mod/ratingsearch.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mod/ratingsearch.php') diff --git a/mod/ratingsearch.php b/mod/ratingsearch.php index 9a537bf97..558b459eb 100644 --- a/mod/ratingsearch.php +++ b/mod/ratingsearch.php @@ -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); -- cgit v1.2.3