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

rel #32494 : classic sitotheque menu item kept even if sito in album is activated

parent b9af815a
6 merge requests!1553Master,!1502Master,!1501Stable,!1289Master,!1286Dev#32494 sitotheque utiliser l interface album pour creer une sitotheque,!1285Dev#32494 sitotheque utiliser l interface album pour creer une sitotheque
......@@ -74,8 +74,7 @@ class ZendAfi_View_Helper_Admin_MenuGaucheAdmin extends ZendAfi_View_Helper_Base
$this->filterAdmin($this->user))
.$this->addMenu("sitotheque_16.png", $this->translate()->_("Sitothèque"), "/admin/sito",
!Class_AdminVar::isSitoInAlbums()
&& ($this->filterAdmin($this->user) || $this->user->hasRightToAccess(Class_UserGroup::RIGHT_USER_SITOTHEQUE)))
$this->filterAdmin($this->user) || $this->user->hasRightToAccess(Class_UserGroup::RIGHT_USER_SITOTHEQUE))
.$this->addMenu("moderation_16.png", $this->translate()->_("Modération"), "/admin/modo/",
$this->filterAll($this->user),
......
......@@ -124,9 +124,9 @@ class IndexControllerIndexSitothequeInAlbumsTest extends IndexControllerIndexSit
}
/** @test */
public function withSitoInAlbumsShouldNotDisplaySitothequeItemInContentManagerMenu() {
$this->assertNotXPathContentContains($this->_cms_menu_path . '//a', 'Sitothèque',
$this->_response->getBody());
public function withSitoInAlbumsShouldAlsoDisplaySitothequeItemInContentManagerMenu() {
$this->assertXPathContentContains($this->_cms_menu_path . '//a', 'Sitothèque',
$this->_response->getBody());
}
......
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