Skip to content

Commit

Permalink
User considered subscribed to session courses even when session over …
Browse files Browse the repository at this point in the history
…- refs BT#16808
  • Loading branch information
Sébastien Ducoulombier committed Mar 12, 2020
1 parent b65c1da commit c2a821b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions main/inc/lib/course.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1200,10 +1200,6 @@ public static function is_user_subscribed_in_course(
* @var $session \Chamilo\CoreBundle\Entity\Session
*/
$session = $sessionRelUser->getSession();
$now = new DateTime();
if ($now < $session->getAccessStartDate() or $session->getAccessEndDate() < $now) {
return false;
}
$sessionRelCourse = Database::getManager()->getRepository('ChamiloCoreBundle:SessionRelCourse')->findOneBy([
'session' => $session,
'course' => $course,
Expand Down

0 comments on commit c2a821b

Please sign in to comment.