|
@@ -31,7 +31,7 @@ class BxReviewsMenuViewActions extends BxBaseModTextMenuViewActions
|
|
|
return $this->_getMenuItemByNameActions($aItem);
|
|
return $this->_getMenuItemByNameActions($aItem);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- protected function _isContentPublic($iContentId) {
|
|
|
|
|
|
|
+ protected function _isContentPublic($iContentId, $aPublicGroups = []) {
|
|
|
$CNF = &$this->_oModule->_oConfig->CNF;
|
|
$CNF = &$this->_oModule->_oConfig->CNF;
|
|
|
|
|
|
|
|
if(empty($CNF['FIELD_ALLOW_VIEW_TO']))
|
|
if(empty($CNF['FIELD_ALLOW_VIEW_TO']))
|
|
@@ -41,7 +41,10 @@ class BxReviewsMenuViewActions extends BxBaseModTextMenuViewActions
|
|
|
if(!isset($aContentInfo[$CNF['FIELD_ALLOW_VIEW_TO']]))
|
|
if(!isset($aContentInfo[$CNF['FIELD_ALLOW_VIEW_TO']]))
|
|
|
return true;
|
|
return true;
|
|
|
|
|
|
|
|
- return $aContentInfo[$CNF['FIELD_ALLOW_VIEW_TO']] < 0 || in_array($aContentInfo[$CNF['FIELD_ALLOW_VIEW_TO']], array(BX_DOL_PG_ALL, BX_DOL_PG_MEMBERS));
|
|
|
|
|
|
|
+ if(empty($aPublicGroups))
|
|
|
|
|
+ $aPublicGroups = [BX_DOL_PG_ALL, BX_DOL_PG_MEMBERS];
|
|
|
|
|
+
|
|
|
|
|
+ return $aContentInfo[$CNF['FIELD_ALLOW_VIEW_TO']] < 0 || in_array($aContentInfo[$CNF['FIELD_ALLOW_VIEW_TO']], $aPublicGroups);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|