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