AntonLV 6 anos atrás
pai
commit
eee9680a6f

+ 5 - 1
modules/boonex/timeline/classes/BxTimelinePrivacy.php

@@ -41,7 +41,11 @@ class BxTimelinePrivacy extends BxBaseModNotificationsPrivacy
                 continue;
                 continue;
 
 
             $sCnnProfileModule = $oCnnProfile->getModule();
             $sCnnProfileModule = $oCnnProfile->getModule();
-            $mixedCheckResult = bx_srv($sCnnProfileModule, 'check_allowed_post_in_profile', array($oCnnProfile->getContentId(), $iOwnerId));
+            $sCnnProfileMethod = 'check_allowed_post_in_profile';
+            if(!BxDolRequest::serviceExists($sCnnProfileModule, $sCnnProfileMethod))
+                continue;
+
+            $mixedCheckResult = bx_srv($sCnnProfileModule, $sCnnProfileMethod, array($oCnnProfile->getContentId(), $iOwnerId));
             if($mixedCheckResult !== CHECK_ACTION_RESULT_ALLOWED)
             if($mixedCheckResult !== CHECK_ACTION_RESULT_ALLOWED)
                 continue;
                 continue;