From 7e7d4cfce354275e86c75af0c52de7bd209227bf Mon Sep 17 00:00:00 2001 From: F TEMPEZ Date: Thu, 21 Sep 2023 11:41:21 +0200 Subject: [PATCH] Nom de fonction --- core/core.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/core.php b/core/core.php index f8c8a49..8b35cda 100644 --- a/core/core.php +++ b/core/core.php @@ -1475,14 +1475,14 @@ class common case self::GROUP_STUDENT: return ( // Le cours est-il ouvert ? - $this->courseAccess($courseId) && - // L'étudiant est isncrits ? + $this->courseIsAvailable($courseId) && + // L'étudiant est inscrit ? array_search($userId, $this->getData(['enrolment', $courseId, 'students'])) ); case self::GROUP_VISITOR: // Le cours est-il ouvert ? return ( - $this->courseAccess($courseId) && + $this->courseIsAvailable($courseId) && $this->getData(['course', $courseId, 'enrolment']) === self::COURSE_ENROLMENT_GUEST ); default: @@ -1509,7 +1509,7 @@ class common * @param @return bool le user a le droit d'entrée dans le cours * @param string $courseId identifiant du cours sollicité */ - public function courseAccess($courseId) + public function courseIsAvailable($courseId) { $access = $this->getData(['course', $courseId, 'access']); switch ($access) {