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;
|
return $user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($_SESSION['allow_api'])) {
|
||||||
|
return local_user();
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue