mirror of
https://github.com/friendica/friendica
synced 2024-11-10 06:22:53 +00:00
Making the tests work
This commit is contained in:
parent
e492650d1b
commit
0ecef26064
1 changed files with 4 additions and 0 deletions
|
@ -100,6 +100,10 @@ function api_user()
|
|||
return $user;
|
||||
}
|
||||
|
||||
if (!empty($_SESSION['allow_api'])) {
|
||||
return local_user();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue