AntonLV 13 лет назад
Родитель
Сommit
69ddb6eae1

+ 10 - 1
modules/boonex/timeline/classes/BxTimelineCmts.php

@@ -28,7 +28,16 @@ class BxTimelineCmts extends BxTemplCmtsView
     {
     	return false;
     }
-    
+
+	public function isPostReplyAllowed ($isPerformAction = false)
+	{
+		bx_import('BxDolModule');
+		$oModule = BxDolModule::getInstance('bx_timeline');
+		if(!$oModule->isAllowedComment($isPerformAction))
+			return false;
+
+        return parent::isPostReplyAllowed($isPerformAction);
+    }
 }
 
 /** @} */ 

+ 0 - 3
modules/boonex/timeline/classes/BxTimelineModule.php

@@ -368,9 +368,6 @@ class BxTimelineModule extends BxDolModule
 
     public function getCmtsObject($iId, $bPerform = false)
     {
-    	if(!$this->isAllowedComment($bPerform))
-    		return false;
-
     	bx_import('BxDolCmts');
         $oCmts = BxDolCmts::getObjectInstance($this->_oConfig->getSystemName('comment'), $iId);
 		if(!$oCmts->isEnabled())