From 6c37a389807c28198a9eefae9dc479bc714981c3 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Mon, 26 Feb 2018 21:50:17 -0800 Subject: fix public stream app permission check to match the recent fixes to the Module --- boot.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index dbc5e6dcc..0c3db1531 100755 --- a/boot.php +++ b/boot.php @@ -1686,10 +1686,15 @@ function remote_channel() { function can_view_public_stream() { - if((observer_prohibited(true)) - || (! (intval(get_config('system','open_pubstream',1))) && get_observer_hash())) { + if(observer_prohibited(true)) { return false; } + + if(! (intval(get_config('system','open_pubstream',1)))) { + if(! get_observer_hash()) { + return false; + } + } $site_firehose = ((intval(get_config('system','site_firehose',0))) ? true : false); $net_firehose = ((get_config('system','disable_discover_tab',1)) ? false : true); -- cgit v1.2.3