diff --git a/library/ZendAfi/View/Helper/Admin/MenuGaucheAdmin.php b/library/ZendAfi/View/Helper/Admin/MenuGaucheAdmin.php index 4fb3d33a12a84d5bde4b485340782e2afe1a9b01..b7c0a5d9dc3c3f23b03eb1abf81c8463e302dd4f 100644 --- a/library/ZendAfi/View/Helper/Admin/MenuGaucheAdmin.php +++ b/library/ZendAfi/View/Helper/Admin/MenuGaucheAdmin.php @@ -231,7 +231,7 @@ class ZendAfi_View_Helper_Admin_MenuGaucheAdmin extends ZendAfi_View_Helper_Base $this->filterSuperAdmin($this->user)) .$this->addMenu("images.png", $this->translate()->_("Cache des images"), "/admin/systeme/cacheimages", - $this->filterSuperAdmin($this->user)) + $this->filterAdminPortail($this->user)) .$this->addMenu("chat.gif.png", $this->translate()->_("Import avis opac2"), "/admin/systeme/importavisopac2", $this->filterSuperAdmin($this->user)) diff --git a/tests/library/ZendAfi/View/Helper/Admin/MenuGaucheAdminTest.php b/tests/library/ZendAfi/View/Helper/Admin/MenuGaucheAdminTest.php index 1e2ac60633adc464accb1d501b10e72dd99d17d7..1c1711297e9a7c6398ffee08a4e7a4c01e7a21ee 100644 --- a/tests/library/ZendAfi/View/Helper/Admin/MenuGaucheAdminTest.php +++ b/tests/library/ZendAfi/View/Helper/Admin/MenuGaucheAdminTest.php @@ -74,6 +74,12 @@ class ZendAfi_View_Helper_Admin_MenuGaucheAdminVariableAsAdminTest extends ZendA public function blocBibNumeriqueShouldBePresent() { $this->assertXPathContentContains($this->html, '//div[@class="menuGaucheAdmin"]//td', utf8_encode('Bibliothèque numérique')); } + + + /** @test */ + public function menuCacheImagesShouldNotBePresent() { + $this->assertXPath($this->html, '//a[contains(@href, "/admin/systeme/cacheimages")]', $this->html); + } } @@ -109,6 +115,12 @@ class ZendAfi_View_Helper_Admin_MenuGaucheAdminAsRedacBibTest extends ZendAfi_Vi public function blocBibNumeriqueShouldNotBePresent() { $this->assertNotXPathContentContains($this->html, '//div[@class="menuGaucheAdmin"]//td', utf8_encode('Bibliothèque numérique')); } + + + /** @test */ + public function menuCacheImagesShouldNotBePresent() { + $this->assertNotXPath($this->html, '//a[contains(@href, "/admin/systeme/cacheimages")]', $this->html); + } } ?> \ No newline at end of file