X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fphotos.php;h=324ce898d26003fdf188ebd919114cc43e6590a6;hb=cde17704ddbbe2b4926824aa2aa7aec7a9ac2dd6;hp=186873a7b899b6ca5ebd1b8809542b3ff735d4c8;hpb=5654ce926ca012acd9f725c8c7d6e32609a17646;p=friendica.git diff --git a/mod/photos.php b/mod/photos.php index 186873a7b8..324ce898d2 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -6,6 +6,10 @@ require_once('include/bbcode.php'); function photos_init(&$a) { + + if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) { + return; + } $o = ''; if($a->argc > 1) { @@ -657,6 +661,12 @@ function photos_content(&$a) { // photos/name/image/xxxxx/edit + if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) { + notice( t('Public access denied.') . EOL); + return; + } + + require_once('include/bbcode.php'); require_once('include/security.php'); require_once('include/conversation.php');