From 69f014d02b0d53ac2b42cbebe3d30418a2d0f612 Mon Sep 17 00:00:00 2001 From: Friendika Date: Sat, 28 May 2011 00:49:03 -0700 Subject: [PATCH] bug #38 ability to restrict profile, wall, photos from non-friends --- mod/photos.php | 2 +- mod/profile.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/photos.php b/mod/photos.php index 1fb6ee5817..71d00ed254 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -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; } diff --git a/mod/profile.php b/mod/profile.php index 4db5485770..b80feab34a 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -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; }