Jelajahi Sumber

#281 Groups: timeline privacy

Alex Trofimov 10 tahun lalu
induk
melakukan
dae6be3355

+ 1 - 1
modules/base/profile/classes/BxBaseModProfileAlertsResponse.php

@@ -101,7 +101,7 @@ class BxBaseModProfileAlertsResponse extends BxDolAlertsResponse
 
     protected function processTimelineEventsBoolResult ($oAlert, $iGroupProfileId, $sFunc = 'checkAllowedPost')
     {
-        if (!$oAlert->aExtras['result'])
+        if (isAdmin() || !$oAlert->aExtras['result'])
             return;
 
         $oGroupProfile = BxDolProfile::getInstance($iGroupProfileId);

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

@@ -815,7 +815,7 @@ class BxTimelineModule extends BxBaseModNotificationsModule
         $oCmts = $this->getCmtsObject($sSystem, $iObjectId);
         $oCmts->addCssJs();
 
-        $bResult = isAdmin() ? true : false;
+        $bResult = true;
 
         if ($oProfileOwner = BxDolProfile::getInstance($aEvent['owner_id']))
             bx_alert($oProfileOwner->getModule(), $this->_oConfig->getUri() . '_comment', $oProfileOwner->id(), (int)$this->getUserId(), array('result' => &$bResult));
@@ -833,7 +833,7 @@ class BxTimelineModule extends BxBaseModNotificationsModule
         $oVote = $this->getVoteObject($sSystem, $iObjectId);
         $oVote->addCssJs();
 
-        $bResult = isAdmin() ? true : false;
+        $bResult = true;
 
         if ($oProfileOwner = BxDolProfile::getInstance($aEvent['owner_id']))
             bx_alert($oProfileOwner->getModule(), $this->_oConfig->getUri() . '_vote', $oProfileOwner->id(), (int)$this->getUserId(), array('result' => &$bResult));
@@ -851,7 +851,7 @@ class BxTimelineModule extends BxBaseModNotificationsModule
         $oReport = $this->getReportObject($sSystem, $iObjectId);
         $oReport->addCssJs();
 
-        $bResult = isAdmin() ? true : false;
+        $bResult = true;
 
         if ($oProfileOwner = BxDolProfile::getInstance($aEvent['owner_id']))
             bx_alert($oProfileOwner->getModule(), $this->_oConfig->getUri() . '_report', $oProfileOwner->id(), (int)$this->getUserId(), array('result' => &$bResult));