diff --git a/htdocs/PI/index.php b/htdocs/PI/index.php index e4672afbb..3c90c59e7 100644 --- a/htdocs/PI/index.php +++ b/htdocs/PI/index.php @@ -141,6 +141,11 @@ function getXml() { $em = \Factory::getEntityManager(); switch ($this->method) { + case "access_test": + require_once($directory . 'AccessTest.php'); + $this->authByIdentifier(true); + $xml = (new AccessTest())->getRenderingOutput(); + break; case "get_site": require_once($directory . 'GetSite.php'); $this->authByIdentifier(); @@ -367,9 +372,14 @@ function getXml() { return $xml; } - /* Authorize a request based on the supplied identifier */ + /* + * Authorize a request based on the supplied identifier + * @param boolean $forceStrictForHosts If true, restriction of + * personal data is forced + * for hosts. + */ - function authByIdentifier() { + function authByIdentifier($forceStrictForHosts = false) { require_once __DIR__.'/../web_portal/controllers/utils.php'; require_once __DIR__.'/../../lib/Doctrine/entities/APIAuthentication.php'; @@ -395,7 +405,7 @@ function authByIdentifier() { $authenticated = true; } - if (!\Factory::getConfigService()->isRestrictPDByRole()) { + if (!\Factory::getConfigService()->isRestrictPDByRole($forceStrictForHosts)) { // Only a 'valid' identifier is needed. $authenticated = true; } diff --git a/htdocs/web_portal/static_html/goc5_logo.html b/htdocs/web_portal/static_html/goc5_logo.html index 03c802df8..4d96abe9f 100644 --- a/htdocs/web_portal/static_html/goc5_logo.html +++ b/htdocs/web_portal/static_html/goc5_logo.html @@ -4,7 +4,7 @@