allow a site to block (public) the directory separately from other resources.
This commit is contained in:
parent
b12dc89bb1
commit
7b6ddeb859
@ -64,6 +64,11 @@ class Directory extends \Zotlabs\Web\Controller {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(get_config('system','block_public_directory',false) && (! get_observer_hash())) {
|
||||||
|
notice( t('Public access denied.') . EOL);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$observer = get_observer_hash();
|
$observer = get_observer_hash();
|
||||||
|
|
||||||
$globaldir = get_directory_setting($observer, 'globaldir');
|
$globaldir = get_directory_setting($observer, 'globaldir');
|
||||||
|
Reference in New Issue
Block a user