mirror of
https://github.com/friendica/friendica
synced 2024-12-22 23:20:16 +00:00
Bugfix: You cannot be local and remote at the same time
This commit is contained in:
parent
ccb54f3ee4
commit
21d27c2124
1 changed files with 4 additions and 0 deletions
4
boot.php
4
boot.php
|
@ -947,6 +947,10 @@ function public_contact() {
|
|||
* @return int|bool visitor_id or false
|
||||
*/
|
||||
function remote_user() {
|
||||
// You cannot be both local and remote
|
||||
if (local_user()) {
|
||||
return false;
|
||||
}
|
||||
if ((x($_SESSION, 'authenticated')) && (x($_SESSION, 'visitor_id'))) {
|
||||
return intval($_SESSION['visitor_id']);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue