aboutsummaryrefslogtreecommitdiffstats
path: root/mod/ratingsearch.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-03 15:16:03 -0800
committerfriendica <info@friendica.com>2015-02-03 15:16:03 -0800
commit36b756e4cde4f45993a1941eb6b8a71bb348c6e4 (patch)
treea4b2320eb72b06c8f582ad15b0466f98fdf1da66 /mod/ratingsearch.php
parentdf632c423252a19b41d3502412135309063b85fa (diff)
downloadvolse-hubzilla-36b756e4cde4f45993a1941eb6b8a71bb348c6e4.tar.gz
volse-hubzilla-36b756e4cde4f45993a1941eb6b8a71bb348c6e4.tar.bz2
volse-hubzilla-36b756e4cde4f45993a1941eb6b8a71bb348c6e4.zip
honour block public setting - especially for standalones
Diffstat (limited to 'mod/ratingsearch.php')
-rw-r--r--mod/ratingsearch.php6
1 files changed, 6 insertions, 0 deletions
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);