diff options
author | Friendika <info@friendika.com> | 2011-05-24 16:30:52 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-05-24 16:30:52 -0700 |
commit | e3d1ef8ef7c1be2a8588ec1709304f766b0c7607 (patch) | |
tree | 36fa06a1745df6c041b99b23a3524b7bd14bcfa7 /mod/profile.php | |
parent | 21769d7390a0bcfb5c74e53c05867ab52a54448b (diff) | |
download | volse-hubzilla-e3d1ef8ef7c1be2a8588ec1709304f766b0c7607.tar.gz volse-hubzilla-e3d1ef8ef7c1be2a8588ec1709304f766b0c7607.tar.bz2 volse-hubzilla-e3d1ef8ef7c1be2a8588ec1709304f766b0c7607.zip |
ability to hide profile and wall from unknown people
Diffstat (limited to 'mod/profile.php')
-rw-r--r-- | mod/profile.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/profile.php b/mod/profile.php index 634aec460..8d46d6c5b 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -51,11 +51,14 @@ function profile_init(&$a) { function profile_content(&$a, $update = 0) { - if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) { + if(get_config('system','block_public') && (! local_user()) && (! remote_user())) { 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'); |