Просмотр исходного кода

#549 Convos: not logged-in users can see part of the convo subject

Alex Trofimov 9 лет назад
Родитель
Сommit
713c87bcad
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      modules/base/text/classes/BxBaseModTextPageEntry.php

+ 1 - 1
modules/base/text/classes/BxBaseModTextPageEntry.php

@@ -24,7 +24,7 @@ class BxBaseModTextPageEntry extends BxBaseModGeneralPageEntry
         if ($iContentId)
             $this->_aContentInfo = $this->_oModule->_oDb->getContentInfoById($iContentId);
 
-        if ($this->_aContentInfo) {
+        if ($this->_aContentInfo && CHECK_ACTION_RESULT_ALLOWED === $this->_oModule->checkAllowedView($this->_aContentInfo)) {
             $sTitle = isset($this->_aContentInfo[$CNF['FIELD_TITLE']]) ? $this->_aContentInfo[$CNF['FIELD_TITLE']] : strmaxtextlen($this->_aContentInfo[$CNF['FIELD_TEXT']], 20, '...');
             $sUrl = BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=' . $CNF['URI_VIEW_ENTRY'] . '&id=' . $this->_aContentInfo[$CNF['FIELD_ID']]);
             $this->addMarkers($this->_aContentInfo); // every field can be used as marker