public function mayOperate($sOperation, $oUser = false) { $oUser = SearchIndexPeer::getRightsUser($oUser); $bIsAllowed = false; if ($oUser && ($this->isNew() || $this->getCreatedBy() === $oUser->getId()) && SearchIndexPeer::mayOperateOnOwn($oUser, $this, $sOperation)) { $bIsAllowed = true; } else { if (SearchIndexPeer::mayOperateOn($oUser, $this, $sOperation)) { $bIsAllowed = true; } } FilterModule::getFilters()->handleSearchIndexOperationCheck($sOperation, $this, $oUser, array(&$bIsAllowed)); return $bIsAllowed; }