aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-02-14 15:32:33 -0800
committerzotlabs <mike@macgirvin.com>2018-02-14 15:32:33 -0800
commit465d89129caaaa0240229f8d6f81d68f26eb60b0 (patch)
tree2d547ae70a283f6cc0c92c10863b6c837f522d4d /include/nav.php
parent24da5d82db8316a54ccb41616e0e2acb5d73fc84 (diff)
downloadvolse-hubzilla-465d89129caaaa0240229f8d6f81d68f26eb60b0.tar.gz
volse-hubzilla-465d89129caaaa0240229f8d6f81d68f26eb60b0.tar.bz2
volse-hubzilla-465d89129caaaa0240229f8d6f81d68f26eb60b0.zip
provide option to block the public stream unless authenticated, since there could be legal issues with unmoderated content
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/nav.php b/include/nav.php
index 9c88541d1..df58ee96f 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -73,9 +73,7 @@ EOT;
// nav links: array of array('href', 'text', 'extra css classes', 'title')
$nav = [];
- $disable_discover_tab = get_config('system','disable_discover_tab') || get_config('system','disable_discover_tab') === false;
-
- if(! $disable_discover_tab)
+ if(can_view_public_stream())
$nav['pubs'] = true;
/**