|
|
|
|
@ -83,10 +83,9 @@ function get_users($from, $limit, $column, $direction) |
|
|
|
|
$is_western_name_order = api_is_western_name_order(); |
|
|
|
|
$coach_id = api_get_user_id(); |
|
|
|
|
$drhLoaded = false; |
|
|
|
|
$drhCanAccessAllStudents = (api_drh_can_access_all_session_content() || api_get_configuration_value('drh_allow_access_to_all_students')); |
|
|
|
|
|
|
|
|
|
if (api_is_drh()) { |
|
|
|
|
if ($drhCanAccessAllStudents) { |
|
|
|
|
if (api_drh_can_access_all_session_content()) { |
|
|
|
|
$students = SessionManager::getAllUsersFromCoursesFromAllSessionFromStatus( |
|
|
|
|
'drh_all', |
|
|
|
|
api_get_user_id(), |
|
|
|
|
@ -104,6 +103,11 @@ function get_users($from, $limit, $column, $direction) |
|
|
|
|
); |
|
|
|
|
$drhLoaded = true; |
|
|
|
|
} |
|
|
|
|
$allowDhrAccessToAllStudents = api_get_configuration_value('drh_allow_access_to_all_students'); |
|
|
|
|
if ($allowDhrAccessToAllStudents) { |
|
|
|
|
$students = UserManager::get_user_list(['status' => STUDENT]); |
|
|
|
|
$drhLoaded = true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (false === $drhLoaded) { |
|
|
|
|
|