Sfoglia il codice sorgente

#512 timeline menu in Groups timeline

Alex Trofimov 10 anni fa
parent
commit
718f48558b

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

@@ -42,7 +42,7 @@ class BxBaseModProfileAlertsResponse extends BxBaseModGeneralAlertsResponse
         // timeline events to override permissions
         switch ($oAlert->sAction) {
         case 'timeline_view':
-            $this->processTimelineView($oAlert, $oAlert->iObject, true);
+            $this->processTimelineView($oAlert, $oAlert->iObject);
             break;
 
         case 'timeline_comment':
@@ -72,6 +72,8 @@ class BxBaseModProfileAlertsResponse extends BxBaseModGeneralAlertsResponse
         if (!$oGroupProfile) 
             return;
 
+        $bDisableOwnerActions = !BxDolService::call($oGroupProfile->getModule(), 'act_as_profile');
+
         $aContentInfo = $this->_oModule->serviceGetContentInfoById($oGroupProfile->getContentId());
         if (CHECK_ACTION_RESULT_ALLOWED !== $this->_oModule->checkAllowedView($aContentInfo)) {
             $oAlert->aExtras['override_content'] = MsgBox(_t('_sys_access_denied_to_private_content'));