示例#1
0
 function isRemoveAllowedAll()
 {
     if ($this->_iId == $this->_getAuthorId() && getParam('enable_cmts_profile_delete') == 'on') {
         return true;
     }
     return parent::isRemoveAllowedAll();
 }
示例#2
0
 function isRemoveAllowedAll()
 {
     $oMain = $this->getMain();
     $aDataEntry = $oMain->_oDb->getEntryById($this->getId());
     if ($oMain->isAllowedCreatorCommentsDeleteAndEdit($aDataEntry)) {
         return true;
     }
     return parent::isRemoveAllowedAll();
 }
示例#3
0
 function isRemoveAllowedAll()
 {
     $oMain = $this->getMain();
     $aEvent = $oMain->_oDb->getEntryByIdAndOwner($this->getId(), 0, true);
     if ($oMain->isAllowedCreatorCommentsDeleteAndEdit($aEvent)) {
         return true;
     }
     return parent::isRemoveAllowedAll();
 }
示例#4
0
 function isRemoveAllowedAll()
 {
     $oMain = $this->getMain();
     $aBlogPost = $oMain->_oDb->getPostInfo($this->getId(), 0, true);
     if ($oMain->isAllowedCreatorCommentsDeleteAndEdit($aBlogPost)) {
         return true;
     }
     return parent::isRemoveAllowedAll();
 }