From b4298d2e9a38a97053b282369c9e858ca385a1d9 Mon Sep 17 00:00:00 2001 From: James Wragg Date: Thu, 10 Mar 2022 11:35:54 +0000 Subject: [PATCH] Fix: Document Generation ?? check --- .../Olcs/src/Controller/Document/AbstractDocumentController.php | 2 +- .../Olcs/src/Controller/Document/DocumentFinaliseController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/Olcs/src/Controller/Document/AbstractDocumentController.php b/module/Olcs/src/Controller/Document/AbstractDocumentController.php index 1f26f4c048..9c5d169e3a 100644 --- a/module/Olcs/src/Controller/Document/AbstractDocumentController.php +++ b/module/Olcs/src/Controller/Document/AbstractDocumentController.php @@ -266,7 +266,7 @@ protected function getUriPattern(): string $prefix = $this->getOsType(); // TODO: VOL-2661 - Check for JWTIdentityProvider will be removed post OpenAM. - if ($prefix === RefData::USER_OS_TYPE_WINDOWS_10 && $config['auth']['identity_provider'] ?? null === JWTIdentityProvider::class) { + if ($prefix === RefData::USER_OS_TYPE_WINDOWS_10 && $config['auth']['identity_provider'] === JWTIdentityProvider::class) { $url_pattern = $config['webdav']['url_pattern'] ?? null; if (!isset($url_pattern)) { throw new ConfigurationException('Expected a URL Pattern defined in configuration at: webdav -> url_pattern'); diff --git a/module/Olcs/src/Controller/Document/DocumentFinaliseController.php b/module/Olcs/src/Controller/Document/DocumentFinaliseController.php index 20ac107363..47f481d9d6 100644 --- a/module/Olcs/src/Controller/Document/DocumentFinaliseController.php +++ b/module/Olcs/src/Controller/Document/DocumentFinaliseController.php @@ -97,7 +97,7 @@ public function finaliseAction() $uriPattern = $this->getUriPattern(); // TODO: VOL-2661 - Check for JWTIdentityProvider will be removed post OpenAM. - if ($this->getOsType() === RefData::USER_OS_TYPE_WINDOWS_10 && $this->config['auth']['identity_provider'] ?? null === JWTIdentityProvider::class) { + if ($this->getOsType() === RefData::USER_OS_TYPE_WINDOWS_10 && $this->config['auth']['identity_provider'] === JWTIdentityProvider::class) { $loginId = $this->currentUser()->getIdentity()->getUsername(); $jwt = $this->webDavJsonWebTokenGenerationService->generateToken( $loginId,