mirror of
https://github.com/friendica/friendica
synced 2025-04-29 19:44:22 +02:00
New function "isAuthenticated"
This commit is contained in:
parent
89f02a1125
commit
83b00ef308
26 changed files with 64 additions and 48 deletions
|
@ -215,7 +215,7 @@ class Profile
|
|||
);
|
||||
}
|
||||
|
||||
$block = ((Config::get('system', 'block_public') && !local_user() && !remote_user()) ? true : false);
|
||||
$block = ((Config::get('system', 'block_public') && !Session::isAuthenticated()) ? true : false);
|
||||
|
||||
/**
|
||||
* @todo
|
||||
|
@ -448,7 +448,7 @@ class Profile
|
|||
$about = !empty($profile['about']) ? L10n::t('About:') : false;
|
||||
$xmpp = !empty($profile['xmpp']) ? L10n::t('XMPP:') : false;
|
||||
|
||||
if ((!empty($profile['hidewall']) || $block) && !local_user() && !remote_user()) {
|
||||
if ((!empty($profile['hidewall']) || $block) && !Session::isAuthenticated()) {
|
||||
$location = $gender = $marital = $homepage = $about = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue