aboutsummaryrefslogtreecommitdiffstats
path: root/mod/public.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-06-10 17:58:02 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-06-10 17:58:02 -0700
commita14d2de1f0cb20f73d332f1df8c6437bbab5aec7 (patch)
tree3f9e4e6c77adc9865e13bda7bd1a6e3e6fb094ea /mod/public.php
parentca870dbf31d31455ab4f5e0f461c5af89e1573fa (diff)
parent04551ac32b171ce49eac64cee0eca719d8e2f58a (diff)
downloadvolse-hubzilla-a14d2de1f0cb20f73d332f1df8c6437bbab5aec7.tar.gz
volse-hubzilla-a14d2de1f0cb20f73d332f1df8c6437bbab5aec7.tar.bz2
volse-hubzilla-a14d2de1f0cb20f73d332f1df8c6437bbab5aec7.zip
Merge branch 'master' of https://github.com/redmatrix/redmatrix
Diffstat (limited to 'mod/public.php')
-rw-r--r--mod/public.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/public.php b/mod/public.php
index 3868f6d6c..6a4e6a334 100644
--- a/mod/public.php
+++ b/mod/public.php
@@ -7,6 +7,12 @@ function public_content(&$a, $update = 0, $load = false) {
if($load)
$_SESSION['loadtime'] = datetime_convert();
+
+ if(get_config('system','block_public') && (! get_account_id()) && (! remote_channel())) {
+ return login();
+ }
+
+
if(get_config('system','disable_discover_tab'))
return;