diff options
author | Friendika <info@friendika.com> | 2011-05-28 00:42:01 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-05-28 00:42:01 -0700 |
commit | 4e8a97f30a585eb707081a9216f840eb443a8764 (patch) | |
tree | ca7979c8ce7abbc4dd171dd8121f38628e93bdd5 /mod/profile.php | |
parent | b0c383a6d0464c997203aa4da9bfc3c0417e54cf (diff) | |
download | volse-hubzilla-4e8a97f30a585eb707081a9216f840eb443a8764.tar.gz volse-hubzilla-4e8a97f30a585eb707081a9216f840eb443a8764.tar.bz2 volse-hubzilla-4e8a97f30a585eb707081a9216f840eb443a8764.zip |
bug #38 posts and photos only visible to friends if so configured
Diffstat (limited to 'mod/profile.php')
-rw-r--r-- | mod/profile.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mod/profile.php b/mod/profile.php index 8d46d6c5b..4db548577 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -55,11 +55,6 @@ function profile_content(&$a, $update = 0) { return login(); } - if($a->profile['hidewall'] && (! local_user()) && (! remote_user())) { - notice( t('Access to this profile has been restricted.') . EOL); - return; - } - require_once("include/bbcode.php"); require_once('include/security.php'); require_once('include/conversation.php'); @@ -102,6 +97,12 @@ 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)) { + notice( t('Access to this profile has been restricted.') . EOL); + return; + } + if(! $update) { if(x($_GET,'tab')) |