Просмотр исходного кода

#1555 Orgs: org profile can't post to own timeline

Alex Trofimov 8 лет назад
Родитель
Сommit
09a3cdf6bf
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      modules/base/groups/classes/BxBaseModGroupsModule.php

+ 1 - 1
modules/base/groups/classes/BxBaseModGroupsModule.php

@@ -477,7 +477,7 @@ class BxBaseModGroupsModule extends BxBaseModProfileModule
      */
     public function checkAllowedPost ($aDataEntry, $isPerformAction = false)
     {
-        if ($this->isFan($aDataEntry[$this->_oConfig->CNF['FIELD_ID']]))
+        if ($this->isFan($aDataEntry[$this->_oConfig->CNF['FIELD_ID']]) || ($aDataEntry[$this->_oConfig->CNF['FIELD_ID']] == BxDolProfile::getInstance()->getContentId() && BxDolProfile::getInstance()->getModule() == $this->getName()))
             return CHECK_ACTION_RESULT_ALLOWED;
 
         return _t('_sys_txt_access_denied');