Tests ...
This commit is contained in:
parent
0ecef26064
commit
5960582dcf
|
@ -95,11 +95,6 @@ function api_user()
|
|||
return $user;
|
||||
}
|
||||
|
||||
$user = BasicAuth::getCurrentUserID(false);
|
||||
if (!empty($user)) {
|
||||
return $user;
|
||||
}
|
||||
|
||||
if (!empty($_SESSION['allow_api'])) {
|
||||
return local_user();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue