First mod to avoid users contacting non-friends through chat - refs #5264

skala
Yannick Warnier 13 years ago
parent b88755bf17
commit 0e253e2c50
  1. 4
      main/inc/lib/social.lib.php

@ -654,8 +654,8 @@ class SocialManager extends UserManager {
}
}
//@todo check if user is online to show the chat link
if (api_get_setting('allow_global_chat') == 'true') {
//@todo check if user is online and if it's a friend to show the chat link
if (api_get_setting('allow_global_chat') == 'true' && $show_full_profile) {
if ($user_id != api_get_user_id()) {
$user_name = $user_info['complete_name'];

Loading…
Cancel
Save