From da03e95be9d1fdc104edf4607717fd0ce7ec56a1 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Fri, 28 Jul 2023 11:13:51 +0200 Subject: [PATCH] Routage tient compte du profil --- core/class/router.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/class/router.class.php b/core/class/router.class.php index eb61a5a6..a9bc1323 100644 --- a/core/class/router.class.php +++ b/core/class/router.class.php @@ -527,7 +527,9 @@ class core extends common if ( $this->getData(['page', $this->getUrl(0), 'group']) === self::GROUP_VISITOR or ($this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD') - and $this->getUser('group') >= $this->getData(['page', $this->getUrl(0), 'group']) + // and $this->getUser('group') >= $this->getData(['page', $this->getUrl(0), 'group']) + // Modification qui tient compte du profil de la page + and ($this->getUser('group') * 10 + $this->getUser('profil')) >= ($this->getData(['page', $this->getUrl(0), 'group']) * 10 + $this->getData(['page', $this->getUrl(0), 'profil'])) ) ) { $access = true;