accessing sessions by teachers when date have ended -refs #6778

1.9.x
Yoselyn Castillo 12 years ago
parent cc9418e73f
commit d8e1236584
  1. 9
      main/inc/lib/usermanager.lib.php

@ -2118,6 +2118,15 @@ class UserManager
// Checking session visibility
$visibility = api_get_session_visibility($session_id, null, $ignore_visibility_for_admins);
switch ($visibility) {
case SESSION_VISIBLE_READ_ONLY:
case SESSION_VISIBLE:
case SESSION_AVAILABLE:
break;
case SESSION_INVISIBLE:
continue(2);
}
$categories[$row['session_category_id']]['sessions'][$row['id']]['session_name'] = $row['name'];
$categories[$row['session_category_id']]['sessions'][$row['id']]['session_id'] = $row['id'];

Loading…
Cancel
Save