mirror of
https://github.com/nextcloud/server.git
synced 2026-02-16 17:30:55 -05:00
fixed Drone test
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
This commit is contained in:
parent
f16c9f42c6
commit
0b8a3b578d
1 changed files with 2 additions and 1 deletions
|
|
@ -38,6 +38,7 @@ use OCP\AppFramework\Http\JSONResponse;
|
|||
use OCP\AppFramework\Http\Response;
|
||||
use OCP\AppFramework\Middleware;
|
||||
use OCP\IRequest;
|
||||
use OCP\ISession;
|
||||
use OCP\Security\Bruteforce\IThrottler;
|
||||
use ReflectionMethod;
|
||||
|
||||
|
|
@ -92,7 +93,7 @@ class CORSMiddleware extends Middleware {
|
|||
return;
|
||||
}
|
||||
// Skip CORS check for requests with AppAPI auth.
|
||||
if ($this->session->getSession()->get('app_api') === true) {
|
||||
if ($this->session->getSession() instanceof ISession && $this->session->getSession()->get('app_api') === true) {
|
||||
return;
|
||||
}
|
||||
$this->session->logout();
|
||||
|
|
|
|||
Loading…
Reference in a new issue