Skip to content

Commit

Permalink
Allow access to session index page for general coach - refs BT#9437
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Apr 16, 2015
1 parent 0aeb680 commit 90cfd73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main/session/index.php
Expand Up @@ -54,11 +54,12 @@
$user_course_list[] = $session_item['code'];
}*/

$userIsGeneralCoach = SessionManager::user_is_general_coach($userId, $session_id);

$user_course_list = array();
foreach ($course_list as $course) {
$status = SessionManager::get_user_status_in_course_session($userId, $course['code'], $session_id);
if ($status !== false || api_is_platform_admin()) {
if ($status !== false || api_is_platform_admin() || $userIsGeneralCoach) {
$user_course_list[] = $course['code'];
}
}
Expand Down

0 comments on commit 90cfd73

Please sign in to comment.