Browse Source

Allow teachers to access student skills BT#14161

(skills setting must be enabled in the platform)
jmontoyaa 7 years ago
parent
commit
40f71e5858
2 changed files with 5 additions and 1 deletions
  1. 3 0
      main/install/configuration.dist.php
  2. 2 1
      main/mySpace/myStudents.php

+ 3 - 0
main/install/configuration.dist.php

@@ -706,6 +706,9 @@ $_configuration['gradebook_badge_sidebar'] = [
 // Google translate key
 //$_configuration['translate_app_google_key'] = '';
 
+// Allow teachers to access student skills BT#14161 (skills setting must be enabled in the platform)
+//$_configuration['allow_teacher_access_student_skills'] = false;
+
 // ------ Custom DB changes
 // Add user activation by confirmation email
 // This option prevents the new user to login in the platform if your account is not confirmed via email

+ 2 - 1
main/mySpace/myStudents.php

@@ -1720,7 +1720,8 @@ echo '<div class="communications">';
 echo Tracking::displayUserSkills(
     $user_info['user_id'],
     $courseInfo ? $courseInfo['real_id'] : 0,
-    $sessionId
+    $sessionId,
+    api_get_configuration_value('allow_teacher_access_student_skills')
 );
 echo '</div>';