From b0799c0f7bebdc11cebb367dffd2bc6c77579f05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Sun, 9 Feb 2025 18:44:38 +0100 Subject: [PATCH] =?UTF-8?q?Droits=20dans=20course=20=C3=A0=20tester?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/course/course.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/module/course/course.php b/core/module/course/course.php index 6cf9901..b73b6f5 100644 --- a/core/module/course/course.php +++ b/core/module/course/course.php @@ -414,7 +414,7 @@ class course extends common // Accès limité aux admins, à l'auteur ou éditeurs inscrits if ( - $this->getUser('role') !== self::$actions[__FUNCTION__] + $this->getUser('permission', __CLASS__, __FUNCTION__) !== true ) { // Valeurs en sortie $this->addOutput([ @@ -447,7 +447,7 @@ class course extends common if ( // Accès limité aux admins - $this->getUser('role') !== self::$actions[__FUNCTION__] + $this->getUser('permission', __CLASS__, __FUNCTION__) !== true // Le contenu n'existe pas || $this->getData(['course', $courseId]) === null ) { @@ -487,7 +487,7 @@ class course extends common if ( // Accès limité aux admins - $this->getUser('role') !== self::$actions[__FUNCTION__] + $this->getUser('permission', __CLASS__, __FUNCTION__) !== true ) { // Valeurs en sortie $this->addOutput([ @@ -526,7 +526,7 @@ class course extends common if ( // Accès limité aux admins - $this->getUser('role') !== self::$actions[__FUNCTION__] + $this->getUser('permission', __CLASS__, __FUNCTION__) !== true ) { // Valeurs en sortie $this->addOutput([ @@ -557,7 +557,7 @@ class course extends common { if ( // Accès limité aux admins - $this->getUser('role') !== self::$actions[__FUNCTION__] + $this->getUser('permission', __CLASS__, __FUNCTION__) !== true ) { // Valeurs en sortie $this->addOutput([ @@ -592,7 +592,7 @@ class course extends common if ( // Accès limité aux admins - $this->getUser('role') !== self::$actions[__FUNCTION__] + $this->getUser('permission', __CLASS__, __FUNCTION__) !== true ) { // Valeurs en sortie $this->addOutput([