forked from ZwiiCMS-Team/ZwiiCampus
1410 bug clé
This commit is contained in:
parent
dea8568992
commit
511b90e7a8
@ -498,7 +498,7 @@ class layout extends common
|
||||
$courses = $this->getData([('course')]);
|
||||
$courses = helper::arraycolumn($courses, 'title', 'SORT_ASC');
|
||||
if (
|
||||
$this->getUser('group') < self::GROUP_MEMBER
|
||||
$this->getUser('group') <= self::GROUP_MEMBER
|
||||
&& $this->getData(['theme', 'menu', 'selectSpace']) === true
|
||||
) {
|
||||
if ($courses) {
|
||||
|
@ -1300,7 +1300,7 @@ class course extends common
|
||||
]);
|
||||
break;
|
||||
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);
|
||||
// Stocker la sélection
|
||||
|
Loading…
Reference in New Issue
Block a user