Browse Source

Fix access of "message tracking"

configuration value : "allow_user_message_tracking"
jmontoyaa 6 năm trước cách đây
mục cha
commit
62a3de4ac0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      main/mySpace/myStudents.php

+ 1 - 1
main/mySpace/myStudents.php

@@ -1701,7 +1701,7 @@ if ($allowMessages === true) {
 }
 
 $allow = api_get_configuration_value('allow_user_message_tracking');
-if ($allow && api_is_drh() || api_is_platform_admin()) {
+if ($allow && (api_is_drh() || api_is_platform_admin())) {
     $users = MessageManager::getUsersThatHadConversationWithUser($student_id);
 
     echo Display::page_subheader2(get_lang('MessageTracking'));