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