diff options
author | Friendika <info@friendika.com> | 2011-04-21 19:12:22 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-04-21 19:12:22 -0700 |
commit | 639d52ec181e2c481a8f7697f93278c84a78ec7e (patch) | |
tree | 5eececec077d197cfcb8841e780b0d87d815eec0 /mod/viewcontacts.php | |
parent | eeb3c13ad3af963b9150821fbdd6a5145d1cb188 (diff) | |
download | volse-hubzilla-639d52ec181e2c481a8f7697f93278c84a78ec7e.tar.gz volse-hubzilla-639d52ec181e2c481a8f7697f93278c84a78ec7e.tar.bz2 volse-hubzilla-639d52ec181e2c481a8f7697f93278c84a78ec7e.zip |
block_public should also block the contacts page and 'Connect' page if not logged in
Diffstat (limited to 'mod/viewcontacts.php')
-rw-r--r-- | mod/viewcontacts.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mod/viewcontacts.php b/mod/viewcontacts.php index 063637bf9..c970db33a 100644 --- a/mod/viewcontacts.php +++ b/mod/viewcontacts.php @@ -2,13 +2,21 @@ function viewcontacts_init(&$a) { - profile_load($a,$a->argv[1]); + if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) { + return; + } + profile_load($a,$a->argv[1]); } function viewcontacts_content(&$a) { + if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) { + notice( t('Public access denied.') . EOL); + return; + } + if(((! count($a->profile)) || ($a->profile['hide-friends']))) { notice( t('Permission denied.') . EOL); return; |