]> git.mxchange.org Git - friendica.git/commitdiff
bug #38 ability to restrict profile, wall, photos from non-friends
authorFriendika <info@friendika.com>
Sat, 28 May 2011 07:49:03 +0000 (00:49 -0700)
committerFriendika <info@friendika.com>
Sat, 28 May 2011 07:49:03 +0000 (00:49 -0700)
mod/photos.php
mod/profile.php

index 1fb6ee5817266bd3c8d43c49ec6f41c935eda8ba..71d00ed254efd3fdcca6df6637b486d90cf924b6 100644 (file)
@@ -769,7 +769,7 @@ function photos_content(&$a) {
                intval($owner_uid)
        );
 
-       if(count($r) && $r[0]['hidewall'] && (local_user() !== $owner_uid) && (! remote_contact)) {
+       if(count($r) && $r[0]['hidewall'] && (local_user() != $owner_uid) && (! $remote_contact)) {
                notice( t('Access to this item is restricted.') . EOL);
                return;
        }
index 4db5485770f770fe8374b6184d42b2263bd314de..b80feab34a186192a07c9e54202a7f1712c0e44d 100644 (file)
@@ -98,7 +98,7 @@ function profile_content(&$a, $update = 0) {
 
        $is_owner = ((local_user()) && (local_user() == $a->profile['profile_uid']) ? true : false);
 
-       if($a->profile['hidewall'] && (! $is_owner) && (! remote_contact)) {
+       if($a->profile['hidewall'] && (! $is_owner) && (! $remote_contact)) {
                notice( t('Access to this profile has been restricted.') . EOL);
                return;
        }