Fixed another issue with the visibility of sessions by coaches - refs BT#4890

skala
Yannick Warnier 13 years ago
parent 351705a2d9
commit 95a4a5d0c3
  1. 4
      main/inc/lib/usermanager.lib.php

@ -2260,8 +2260,8 @@ class UserManager {
} else {
if (api_is_allowed_to_create_course()) {
//Teachers can access the session depending in the access_coach date
$condition_date_end1 = null;
$condition_date_end2 = null;
$condition_date_start1 = " AND (session.coach_access_start_date <= '$now' OR session.coach_access_start_date = '0000-00-00 00:00:00') ";
$condition_date_start2 = " AND (session.coach_access_start_date <= '$now' OR session.coach_access_start_date = '0000-00-00 00:00:00') ";
} else {
//Student can't access before the start date or after the end date
$condition_date_start1 = " AND (session.access_start_date <= '$now' OR session.access_start_date = '0000-00-00 00:00:00') ";

Loading…
Cancel
Save