aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/public.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/public.php b/mod/public.php
index 1f23a1999..64ae9d20a 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;