|
@@ -2161,9 +2161,9 @@ class BxBaseModGeneralModule extends BxDolModule
|
|
|
// moderator and owner always have access
|
|
// moderator and owner always have access
|
|
|
if ($aDataEntry[$this->_oConfig->CNF['FIELD_AUTHOR']] == $this->_iProfileId || -$aDataEntry[$this->_oConfig->CNF['FIELD_AUTHOR']] == $this->_iProfileId || $this->_isModerator($isPerformAction))
|
|
if ($aDataEntry[$this->_oConfig->CNF['FIELD_AUTHOR']] == $this->_iProfileId || -$aDataEntry[$this->_oConfig->CNF['FIELD_AUTHOR']] == $this->_iProfileId || $this->_isModerator($isPerformAction))
|
|
|
return CHECK_ACTION_RESULT_ALLOWED;
|
|
return CHECK_ACTION_RESULT_ALLOWED;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// check for context's admins
|
|
// check for context's admins
|
|
|
- if (isset($this->_oConfig->CNF['FIELD_ALLOW_VIEW_TO']) && (int)$aDataEntry[$this->_oConfig->CNF['FIELD_ALLOW_VIEW_TO']] < 0){
|
|
|
|
|
|
|
+ if (!empty($this->_oConfig->CNF['FIELD_ALLOW_VIEW_TO']) && (int)$aDataEntry[$this->_oConfig->CNF['FIELD_ALLOW_VIEW_TO']] < 0) {
|
|
|
$oProfile = BxDolProfile::getInstance(-(int)$aDataEntry[$this->_oConfig->CNF['FIELD_ALLOW_VIEW_TO']]);
|
|
$oProfile = BxDolProfile::getInstance(-(int)$aDataEntry[$this->_oConfig->CNF['FIELD_ALLOW_VIEW_TO']]);
|
|
|
if ($oProfile){
|
|
if ($oProfile){
|
|
|
$sModule = $oProfile->getModule();
|
|
$sModule = $oProfile->getModule();
|