AntonLV 9 лет назад
Родитель
Сommit
f78762d5ec
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      inc/classes/BxDolGridConnections.php

+ 1 - 1
inc/classes/BxDolGridConnections.php

@@ -140,7 +140,7 @@ class BxDolGridConnections extends BxTemplGrid
 
     protected function _getActionAddFriend ($sType, $sKey, $a, $isSmall = false, $isDisabled = false, $aRow = array())
     {
-        if ($this->_bOwner || $aRow['id'] == bx_get_logged_profile_id())
+        if (!isLogged() || $this->_bOwner || $aRow['id'] == bx_get_logged_profile_id())
             return '';
 
         if ($this->_oConnection->isConnected($aRow['id'], bx_get_logged_profile_id()) || $this->_oConnection->isConnected(bx_get_logged_profile_id(), $aRow['id']))