diff options
author | friendica <info@friendica.com> | 2014-04-14 16:45:16 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-04-14 16:45:16 -0700 |
commit | 506ae56385f5f731b7f3a8f5ee7feda2a66ae985 (patch) | |
tree | c41dd3f148b80a51accece6fad946ea80fd784b7 /mod | |
parent | bf8f5d5b2b1753333d2ea9a14f728183c40c2dcb (diff) | |
download | volse-hubzilla-506ae56385f5f731b7f3a8f5ee7feda2a66ae985.tar.gz volse-hubzilla-506ae56385f5f731b7f3a8f5ee7feda2a66ae985.tar.bz2 volse-hubzilla-506ae56385f5f731b7f3a8f5ee7feda2a66ae985.zip |
Better handling of restricted /channel and /profile permissions. We will show the name, profile photo and a 'connect' button if appropriate on these pages regardless of permissions. A blank page makes it difficult for folks to figure out how to connect and if it is their real life friend 'x' or not. It also matches our overall policy (adopted from Facebook's lessons learned) that the channel name and default profile photo are always visible and can't really be blocked without messing up the usability of the entire network. This also makes sure that a connect button can be found somewhere besides the directory - where the entry could be blocked; and avoid somebody having to figure out the webbie and find the link to "follow" (another related issue).
Diffstat (limited to 'mod')
-rw-r--r-- | mod/profile.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mod/profile.php b/mod/profile.php index fca7c8f9f..792bf34c5 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -61,7 +61,7 @@ function profile_content(&$a, $update = 0) { $o = ''; if(! (perm_is_allowed($a->profile['profile_uid'],get_observer_hash(), 'view_profile'))) { - notice( t('Access to this profile has been restricted.') . EOL); + notice( t('Permission denied.') . EOL); return; } @@ -69,11 +69,10 @@ 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_user())) { - notice( t('Access to this profile has been restricted.') . EOL); + notice( t('Permission denied.') . EOL); return; } - $o .= profile_tabs($a, $is_owner, $a->profile['channel_address']); |