1410 bug clé

This commit is contained in:
Fred Tempez 2024-01-20 21:50:30 +01:00
parent dea8568992
commit 511b90e7a8
2 changed files with 2 additions and 2 deletions

View File

@ -498,7 +498,7 @@ class layout extends common
$courses = $this->getData([('course')]); $courses = $this->getData([('course')]);
$courses = helper::arraycolumn($courses, 'title', 'SORT_ASC'); $courses = helper::arraycolumn($courses, 'title', 'SORT_ASC');
if ( if (
$this->getUser('group') < self::GROUP_MEMBER $this->getUser('group') <= self::GROUP_MEMBER
&& $this->getData(['theme', 'menu', 'selectSpace']) === true && $this->getData(['theme', 'menu', 'selectSpace']) === true
) { ) {
if ($courses) { if ($courses) {

View File

@ -1300,7 +1300,7 @@ class course extends common
]); ]);
break; break;
case self::COURSE_ENROLMENT_SELF_KEY: case self::COURSE_ENROLMENT_SELF_KEY:
if ($this->getInput('courseSwapEnrolmentKey', helper::FILTER_PASSWORD, true) === $this->getData(['course', $courseId, 'enrolmentKey'])) if ($this->getInput('courseSwapEnrolmentKey', helper::FILTER_STRING_SHORT, true) === $this->getData(['course', $courseId, 'enrolmentKey']))
{ {
$this->courseEnrolUser($courseId, $userId); $this->courseEnrolUser($courseId, $userId);
// Stocker la sélection // Stocker la sélection