Browse Source

Add only students.

Julio Montoya 10 years ago
parent
commit
7d4cfc2e40
1 changed files with 8 additions and 2 deletions
  1. 8 2
      main/dropbox/dropbox_functions.inc.php

+ 8 - 2
main/dropbox/dropbox_functions.inc.php

@@ -509,8 +509,14 @@ function display_add_form($dropbox_unid, $viewReceivedCategory, $viewSentCategor
     // List of all users in this course and all virtual courses combined with it
     if (api_get_session_id()) {
         $complete_user_list_for_dropbox = array();
-        if (api_get_setting('dropbox_allow_student_to_student')=='true' || $_user['status'] != STUDENT) {
-            $complete_user_list_for_dropbox = CourseManager :: get_user_list_from_course_code($course_info['code'], api_get_session_id());
+        if (api_get_setting('dropbox_allow_student_to_student') == 'true' || $_user['status'] != STUDENT) {
+            $complete_user_list_for_dropbox = CourseManager:: get_user_list_from_course_code(
+                $course_info['code'],
+                api_get_session_id(),
+                null,
+                null,
+                0
+            );
         }
 
         $hideCoach = api_get_configuration_value('dropbox_hide_course_coach');