]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Profile/Contacts.php
New function "isAuthenticated"
[friendica.git] / src / Module / Profile / Contacts.php
index 7463d4043f8565d453dc6c2b2929a3fcb73bad5e..ed41f421b12a8dec7c81de7d4458bbd08e9e5f04 100644 (file)
@@ -10,6 +10,7 @@ use Friendica\Core\Config;
 use Friendica\Core\L10n;
 use Friendica\Core\Protocol;
 use Friendica\Core\Renderer;
+use Friendica\Core\Session;
 use Friendica\Database\DBA;
 use Friendica\Model\Contact;
 use Friendica\Model\Profile;
@@ -19,7 +20,7 @@ class Contacts extends BaseModule
 {
        public static function content()
        {
-               if (Config::get('system', 'block_public') && !local_user() && !remote_user()) {
+               if (Config::get('system', 'block_public') && !Session::isAuthenticated()) {
                        throw new \Friendica\Network\HTTPException\NotFoundException(L10n::t('User not found.'));
                }