fix public stream app permission check to match the recent fixes to the Module
This commit is contained in:
parent
5277e79fa2
commit
6c37a38980
9
boot.php
9
boot.php
@ -1686,10 +1686,15 @@ function remote_channel() {
|
|||||||
|
|
||||||
function can_view_public_stream() {
|
function can_view_public_stream() {
|
||||||
|
|
||||||
if((observer_prohibited(true))
|
if(observer_prohibited(true)) {
|
||||||
|| (! (intval(get_config('system','open_pubstream',1))) && get_observer_hash())) {
|
|
||||||
return false;
|
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);
|
$site_firehose = ((intval(get_config('system','site_firehose',0))) ? true : false);
|
||||||
$net_firehose = ((get_config('system','disable_discover_tab',1)) ? false : true);
|
$net_firehose = ((get_config('system','disable_discover_tab',1)) ? false : true);
|
||||||
|
Reference in New Issue
Block a user