AntonLV %!s(int64=7) %!d(string=hai) anos
pai
achega
073a437593
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      modules/boonex/timeline/classes/BxTimelineModule.php

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

@@ -2564,6 +2564,9 @@ class BxTimelineModule extends BxBaseModNotificationsModule implements iBxDolCon
         $iUserId = $this->getUserId();
 
         $aCheckResult = checkActionModule($iUserId, 'post', $this->getName(), $bPerform);
+        if($aCheckResult[CHECK_ACTION_RESULT] !== CHECK_ACTION_RESULT_ALLOWED)
+            return $aCheckResult[CHECK_ACTION_MESSAGE];
+        
         if(!empty($this->_iOwnerId) && ($oProfileOwner = BxDolProfile::getInstance($this->_iOwnerId)) !== false) {
             if($oProfileOwner->checkAllowedPostInProfile() !== CHECK_ACTION_RESULT_ALLOWED)
                 return _t('_sys_txt_access_denied');