ability to hide profile and wall from unknown people
This commit is contained in:
parent
21769d7390
commit
e3d1ef8ef7
10 changed files with 63 additions and 7 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue