diff options
author | zotlabs <mike@macgirvin.com> | 2017-11-14 14:50:36 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-11-14 14:50:36 -0800 |
commit | d43542dd7a64136626550ba0569b1939b84b8146 (patch) | |
tree | f19c6f9716fcc9fe72e573d778bb45eb1c397051 /Zotlabs/Module/Directory.php | |
parent | 59caf141d1e271ee4a6e7ab8b66f4070835dde95 (diff) | |
parent | 3c3c0ed34269cecdbda1288eab5b63c664a8859c (diff) | |
download | volse-hubzilla-d43542dd7a64136626550ba0569b1939b84b8146.tar.gz volse-hubzilla-d43542dd7a64136626550ba0569b1939b84b8146.tar.bz2 volse-hubzilla-d43542dd7a64136626550ba0569b1939b84b8146.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'Zotlabs/Module/Directory.php')
-rw-r--r-- | Zotlabs/Module/Directory.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Zotlabs/Module/Directory.php b/Zotlabs/Module/Directory.php index 256667ef3..b1552a694 100644 --- a/Zotlabs/Module/Directory.php +++ b/Zotlabs/Module/Directory.php @@ -64,6 +64,11 @@ class Directory extends \Zotlabs\Web\Controller { return; } + if(get_config('system','block_public_directory',false) && (! get_observer_hash())) { + notice( t('Public access denied.') . EOL); + return; + } + $observer = get_observer_hash(); $globaldir = get_directory_setting($observer, 'globaldir'); |