Skip to content
Snippets Groups Projects
Commit 7d9d9d48 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

dev #50215 fix menu link

parent 54b157c5
Branches
Tags
5 merge requests!2102#57574 : correction orthographe des jours de la semaine,!2080Sandbox detach zf from storm,!2061Master,!2052Dev#50215 explo st omer henin arques sso avec portail departemental fin moissonnage oai,!2049Dev#50215 explo st omer henin arques sso avec portail departemental fin moissonnage oai
Pipeline #545 failed with stage
in 8 minutes and 37 seconds
......@@ -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
......@@ -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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment