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