]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Update/Profile.php
Merge pull request #12429 from MrPetovan/bug/contactblock-icon
[friendica.git] / src / Module / Update / Profile.php
index be15820e45d5ea24c95c8fb25208c6dda773acb2..c1b7522e5c8d9615f87905c5a6e22b1181a66895 100644 (file)
@@ -49,7 +49,7 @@ class Profile extends BaseModule
                $is_owner = DI::userSession()->getLocalUserId() == $a->getProfileOwner();
                $last_updated_key = "profile:" . $a->getProfileOwner() . ":" . DI::userSession()->getLocalUserId() . ":" . $remote_contact;
 
-               if (!$is_owner && !$remote_contact) {
+               if (!DI::userSession()->isAuthenticated()) {
                        $user = User::getById($a->getProfileOwner(), ['hidewall']);
                        if ($user['hidewall']) {
                                throw new ForbiddenException(DI::l10n()->t('Access to this profile has been restricted.'));