+ $credentials = null;
+ if ($this->currentUser) {
+ $credentials = $this->credentialRepository->findOneByHostAndUser($host, $this->currentUser->getId());
+ }
+
+ if (null === $credentials) {
+ $this->logger->debug('Auth: no credentials available for host.', ['host' => $host]);
+
+ return false;
+ }
+