From be7073e63f6762dc0ee4dc0d3f74af7724665078 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Mon, 8 Jan 2024 14:56:36 +0100 Subject: [PATCH] layout pour les memebres simples uniquement --- core/class/layout.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/class/layout.class.php b/core/class/layout.class.php index ab3d8fc..1096d6c 100644 --- a/core/class/layout.class.php +++ b/core/class/layout.class.php @@ -506,7 +506,7 @@ class layout extends common } // Commandes pour les membres simples if ( - $this->getUser('group') >= self::GROUP_MEMBER && $this->getUser('group') < self::GROUP_ADMIN + $this->getUser('group') === self::GROUP_MEMBER && $this->getData(['theme', 'menu', 'memberBar']) === true ) { if ( @@ -1036,7 +1036,7 @@ class layout extends common // ZwiiCampus ------ self::$siteContent !== 'home' // ZwiiCampus ------ - && $this->getUser('group') >= self::GROUP_EDITOR + && $this->getUser('group') >= self::GROUP_MEMBER && $this->getUser('permission', 'filemanager') )