1.17.03 Dans le thème, les pages en sont pas affichées dan sle menu, elles ne sont plus générées
This commit is contained in:
parent
17f6a606c6
commit
cfdd9d11ea
@ -536,14 +536,13 @@ class layout extends common
|
||||
break;
|
||||
case self::GROUP_EDITOR:
|
||||
if (
|
||||
$this->getData(['enrolment', self::$siteContent ]) && ($this->getUser('id') === $this->getData(['course', self::$siteContent , 'author']))
|
||||
$this->getData(['enrolment', self::$siteContent]) && ($this->getUser('id') === $this->getData(['course', self::$siteContent, 'author']))
|
||||
// Permission d'accéder aux espaces dans lesquels le membre est inscrit
|
||||
||
|
||||
($this->getData(['enrolment', self::$siteContent ])
|
||||
($this->getData(['enrolment', self::$siteContent])
|
||||
&& $this->getUser('permission', __CLASS__, 'tutor') === true
|
||||
&& array_key_exists($this->getUser('id'), $this->getData(['enrolment', self::$siteContent ])))
|
||||
)
|
||||
{
|
||||
&& array_key_exists($this->getUser('id'), $this->getData(['enrolment', self::$siteContent])))
|
||||
) {
|
||||
$href = helper::baseUrl() . 'course/users/' . self::$siteContent;
|
||||
}
|
||||
break;
|
||||
@ -625,6 +624,14 @@ class layout extends common
|
||||
{
|
||||
$items = '';
|
||||
$currentPageId = $this->getData(['page', $this->getUrl(0)]) ? $this->getUrl(0) : $this->getUrl(2);
|
||||
// La liste des pages n'est générée si le thème ne l'autorise pas sauf pour la page home.
|
||||
if (
|
||||
self::$siteContent === 'home'
|
||||
|| (
|
||||
self::$siteContent !== 'home'
|
||||
&& $this->getData(['theme', 'menu', 'hidePages']) === true
|
||||
)
|
||||
) {
|
||||
foreach ($this->getHierarchy() as $parentPageId => $childrenPageIds) {
|
||||
// Menu extra ou standard
|
||||
|
||||
@ -758,6 +765,8 @@ class layout extends common
|
||||
}
|
||||
$items .= '</ul>';
|
||||
}
|
||||
}
|
||||
|
||||
return ($items);
|
||||
}
|
||||
|
||||
|
@ -51,7 +51,7 @@ class common
|
||||
const ACCESS_TIMER = 1800;
|
||||
|
||||
// Numéro de version
|
||||
const ZWII_VERSION = '1.17.02';
|
||||
const ZWII_VERSION = '1.17.03';
|
||||
|
||||
// URL autoupdate
|
||||
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/campus-update/raw/branch/master/';
|
||||
|
Loading…
x
Reference in New Issue
Block a user