Making the tests work
This commit is contained in:
parent
e492650d1b
commit
0ecef26064
|
@ -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