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