From 94af270ca6a1e733fa37d2f9dc778680ea50186d Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 13 May 2023 23:16:09 +0200 Subject: [PATCH] traitement de l'action en test --- core/class/router.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/class/router.class.php b/core/class/router.class.php index 743d72aa..210db1a8 100644 --- a/core/class/router.class.php +++ b/core/class/router.class.php @@ -699,7 +699,9 @@ class core extends common } } $action = array_key_exists($action, $module::$actions) ? $action : 'index'; - if (array_key_exists($action, $module::$actions)) { + if (array_key_exists($action, $module::$actions) + //&& $this->getPermission($moduleId, $action) + ){ $module->$action(); $output = $module->output; // Check le groupe de l'utilisateur @@ -707,6 +709,7 @@ class core extends common ($module::$actions[$action] === self::GROUP_VISITOR or ($this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD') and $this->getUser('group') >= $module::$actions[$action] + and $this->getPermission($moduleId, $action) ) ) and $output['access'] === true