diff --git a/library/digital_resources/Bibliondemand/ModuleMenu.php b/library/digital_resources/Bibliondemand/ModuleMenu.php index e7f1b3f1f9e89521bb7b3adc07fbb89827dd8b36..a73463f7d051ea73a60cccd5619e6fe1995a205a 100644 --- a/library/digital_resources/Bibliondemand/ModuleMenu.php +++ b/library/digital_resources/Bibliondemand/ModuleMenu.php @@ -20,4 +20,11 @@ */ -class Bibliondemand_ModuleMenu extends Class_DigitalResource_ModuleMenu {} \ No newline at end of file +class Bibliondemand_ModuleMenu extends Class_DigitalResource_ModuleMenu { + public function urlForUser($user) { + if (!$url = $this->_config->getSsoUrl($user)) + $this->setMessage($this->_config->getNotAllowedMessage()); + + return $url; + } +} \ No newline at end of file diff --git a/library/digital_resources/Bibliondemand/tests/BibliondemandTest.php b/library/digital_resources/Bibliondemand/tests/BibliondemandTest.php index 1439f29d8a4d6dea5a4bab07d1086be3f03d0b47..af9410f8e968462f0fcb39b50d7343105c0d72a6 100644 --- a/library/digital_resources/Bibliondemand/tests/BibliondemandTest.php +++ b/library/digital_resources/Bibliondemand/tests/BibliondemandTest.php @@ -49,7 +49,7 @@ class BibliondemandModulesControllerTest extends AbstractControllerTestCase { $this->dispatch('/opac/modules/bibliondemand', true); - $this->assertXpathContentContains('//script', 'window.location="https://biblio.org";', $this->_response->getBody()); + $this->assertXpathContentContains('//script', 'window.location="https://biblio.org";'); } } ?> \ No newline at end of file